Shutdown & Restart Shortcuts for Windows XP & Windows 2000

Windows 2000 (with the Resource Kit installed) and Windows XP (natively) have an actual shutdown command that can be launched from a command prompt ² and which, therefore, also can be launched from a shortcut. To see all available options for this command, click Start, click Run, type CMD, and click OK. Then, in the box that appears, type: SHUTDOWN /?

This command starts a 30-second countdown for a shutdown or restart, which permits you to abort it (with a shutdown -a command). It you want the command to execute, use the -t flag, which lets you set the time lapse in seconds. The examples below use a 1-second delay.

For a shortcut to RESTART Windows XP:
SHUTDOWN -r -t 01

For a shortcut to SHUT DOWN Windows XP:
SHUTDOWN -s -t 01 Unfortunately ² especially on Windows XP ² this option only shuts down Windows. It does not shut down your computer, at l east on most hardware. For that, on Win XP (and for most Win 2000 users also), I recommend the freeware utility Shutdown.exe (not to be confused with the Windows utility by the same name) by MS-MVP Andrej Budja. I¶ve seen several shutdown utilities recommended, but this is the only one that I¶ve seen actually shut down Windows XP and then powerdown the computer behind it. For m ore information on the tool, see here. After you place this utility in the root folder of C:, the commands for a shutdown, restart, or hibernate (respectively), each without a time delay, would be shutdown -u -t 0 for shutdown, shutdown -r -t 0 for restart, and shutdown -h -t 0 for hibernate.

but on network machines as well ± as long as you have administrative access! You can also restart machines. same as typing -? Display a GUI. 2007 231. ShareThis This is one of my favorite tricks. in seconds Shutdown comment (maximum of 127 characters) The reason code for the shutdown: u is the user code p is a planned shutdown code . shutting down my Windows XP machine with one simple line of code! This might not seem necessary since the power button is tucked neatly inside the Start Menu. specify time and more! List Of Shutdown Command Switches No Switches -i -l -s -r -a -f -m \computername -t xx -c comment -d [u] [p]:xx:yy Display information about the shutdown command. I¶ll show you how to schedule a shutdown at a specific time with the Task Scheduler and also how to chance a shutdown in progress. set comments (the reason for the shutdown).023 views page views Learn how to shutdown a Windows computer via the Command Prompt. Not only can you use this on your machine. January 14th.Windows Tip: Shutdown Your Computer With The Command Prompt Written By Saman Sadeghi. but this trick has a few more uses. It must be the first switch Log off the user (This cannot be used on a remote machine: -m switch) Shutdown the computer Restart the computer Cancels a system shutdown already in progress Forces running applications to close without warning Instruct a remote computer to shutdown (can be used with the restart & abort switches) Set a given time for shutdown.

Type the code below and hit OK: shutdown -s ³shutdown´ tells the computer what command we want to execute and the ³-s´ switch tells it what to do. which in this case is ³60 . you won¶t know. which is to shutdown! Specify Time shutdown -s -t 60 Now we have added the ³-t´ switch and a variable. There is no information given! Shutdown Local Machine This only takes a couple of keystrokes. because I shut you down foo!" The ³-c´ switch will allow you to give the user some information for the reason of the shutdown. This number is the number of seconds before the computer is shutdown. A dialog will open and display a count down timer! Give Us Some Info! shutdown -s -t 120 -c "You better finish. Now we can play! Note: You could type the shutdown co mmand directly into the Run dialog. I don¶t advise this. If there is a typo or error.xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) How To Use Shutdown Switches: You don t have to use them all. . but the switches you do use must be in the following order: shutdown [ -i | -l | -s | -r | -a] [-f] [-m \computername] [ -t xx] [-c "comment"] [ -d up:xx:yy] How To: Open the command prompt: Windows Key + R then type the command below and hit OK: cmd This will open the command prompt.

Shutdown A Remote Computer shutdown -s -m \desktop -t 45 I really like this one! The ³-m´ switch will allow you to shutdown a remote machine. i. a window will open displaying the directories available to you. a computer named ³desktop´. For this to work. hit Windows Key + R then type the computer¶s name. Now you know you can shut it down remotely. Once confirmed. hit Windows Key + R then type command below: shutdown -a This will abort the shutdown. you will be asked to log into the machine with a user name and password. Cancel Shutdown Let¶s say that you need to cancel a shutdown in progress. Go to the computer in question. you must have administrative access to the computer! To see of you do. in this case.e. assuming there is a counter and it hasn¶ t reached zero yet! .: \desktop If you can connect to it.

Five minutes! Since I work in a completely locked -down environment I couldn't look to any third party applications for help. shutdown -f -t 0 . Entering the following shutdown command in the run dialog speeds up my shutdown time dramatically. Whenever I tried to shutdown my work laptop it would take almost five minutes.Faster Shutdowns Using the Run Dialog Reader Eric writes in with a tip to eliminate hangs and speed up the shutdown process in Windows without installing any extra software.