Ulti Clocks content
Clear
°F | °C
Clear
62.9°F
Feels like:  63°F
English French German Italian Portuguese Russian Spanish

How to reboot Windows from a command line

theAdmin -- Blog - Windows Stuff PDF Print E-mail
Last Updated on Tuesday, 16 February 2010 09:07

Have you ever wanted to shutdown/reboot a Windows computer that you were connected to remotely?  It happens to me all the time.  While some other operating systems provide a well-documented shutdown command that even the most novice user is familiar with, Windows does not.  Several times I've had to go find the right syntax for this command, so I decided to post it on my own site... if I can't recall it the next time I need it, at least it'll be easy to find. Here we go:

To use the command:

  1. 1 . Start -> Run and then type in Cmd to launch a command prompt window.
  2. 2 . Type "shutdown -s -t 15" and click OK
That's it.

These options are also available for shutdown:

No arguments : Display this message (same as -?)
-i : Display GUI interface, must be the first option
-l : Log off (cannot be used with -m option)
-s : Shutdown the computer
-r : Shutdown and restart the computer
-a : Abort a system shutdown
-m \\computername : Remote computer to shutdown/restart/abort
-t xx : Set timeout for shutdown to xx seconds
-c “comment” : Shutdown comment (maximum of 127 characters)
-f : Forces running applications to close without warning
-d [u][p]:xx:yy : The reason code for the shutdown

 
Please register or login to add your comments to this article.