BethanyW 10/7/2007 4:00:00 PM

How to remotly shut down or restart a computer

It is ocassionally necessary for me to reboot remote PCs... but some systems and/or networks don't give you that option directly. The DOS 'shutdown' command will give you the ability to do this from another machine on the network.x

  Shutdown.exe uses the following syntax:

shutdown \\computername /l /a /r /t:xx "msg" /y /c

 

You can use the following switches with Shutdown.exe:
/m \\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.
/l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer
/a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.
/r: Use this switch to restart the computer instead of fully shutting it down.
/t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.
"msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.
/y: Use this switch to force a "yes" answer to all queries from the computer.
/c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.
Version: Unknown or N/A
Section: Off Topic
This thread has been marked as 'Closed' and archived


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3