Notify Users of Server Shutdown

You need to shut your server down but before so you must notify your users to save data and log off before the server is shut down. Below I will show you how to do this is all versions of windows and a Linux server.

IT Solution

For XP Machines on your network..

We are going to use the Net Send command, for this we need to enable the “Messenger” service on your pc`s. Do this with a GPO and set the messenger service to automatic.The section you need to browse to is as below.

COMPUTER CONFIGURATION>WINDOWS SETTINGS>SECURITY SETTINGS>SYSTEM SERVICES,

Then set the service to start Automatic and run gpupdate /force. We can now use the net send command

To send a message to everything on the network use the command below.

net send * Replace this txt with your message

To send a message to a particular domain ( if you have sub domains this is useful) use the command below

net send /DOMAIN:MyDomainName Replace this txt with your message

If you just want to send a message to particular users as you are disconnecting there shares or doing work on their accounts then use the command below.

net send User1, User2, User3 Replace this txt with your message

Windows Vista ,Windows 7 and Windows 8

The net send commands do not work with these version of windows so we need to use the MSG command.

Drop to a command prompt and type MSG you will see the screen below.

msg command

So if you wanted to contact users on a server the syntax would be

msg /server:yourservername username "enter your message here"

Notify Terminal Services / Remote Desktop Services of Server Shutdown.

Its much more simple on a terminal services server / remote desktop services server.

Simply RDP to the server then right click on the task bar and you will see this screen. Switch to the users tab.

users tab

Right click over the users and click Send Message.  prompt will pop up asking for your message. If you want to message multiple users then simple hold down Ctrl when selecting the users.

send message to multiple users

Notify Users of A linux Server Shutdown

Nice and simple use the command below:

shutdown [-h or -r] time [shutdown message]

Where -h means your halting the system and -r means you will be rebooting the system , where time is enter the time in minutes.

Tags: server management

Allen White

Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

Comments (1)

  • Avatar

    Ryan

    |

    You could shutdown all you windows computers from you linux server by running the following bash script. Samba is required for this script to work properly.

    echo “Please enter you Administrator password”;read pass; for i in $(smbtree -N |grep host\= | cut -d’=’ -f2); do
    net rpc shutdown -r -f -S $i -U Administrator%$pass
    let count=count+1
    echo “Shutdown computer $count Named: $i”
    done

    Reply

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...