Sutdown.exe XP

A co-worker showed me a quick way to shut down and restart a computer. I was really interested because I use Microsoft Remote Desktop feature to connect to a Domino server. The Domino server is on an older computer with a very loud fan so the less it runs the better. My problem was I did not have the option to shut down the machine from the start menu.. I now have two shortcuts on the desktop, one to turn off the machine and a second to cancel the shut down. Common shortcuts ShutDown.exe -l (Logoff) ShutDown.exe -s -t 30 (Shut Down) ShutDown.exe -r -t 1 (Restart Now) ShutDown.exe -r -t 30 (Restart) ShutDown.exe -a (Cancel) Shutdown Help Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy] No args 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 u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) If you are interested in selecting the same icon as the “Turn off computer” icons check out the c:\windows\system32\SHELL32.dll. I even assign shortcut keys to launch them easier, which works from anywhere!!! The shutdown command might work on other versions of Windows, but I have not done any testing. Thanks Tim for the idea.

2 thoughts on “Sutdown.exe XP

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">