Shutdown & Restart Shortcuts For Windows XP & Windows 2000
Shutdown & Restart Shortcuts For Windows XP & Windows 2000
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.
Learn how to shutdown a Windows computer via the Command Prompt. 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.
ShareThis
This is one of my favorite tricks, 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, but this trick has a few more uses. Not only can you use this on your machine,
but on network machines as well – as long as you have administrative access! You can
also restart machines, set comments (the reason for the shutdown), specify time and
more!
-l Log off the user (This cannot be used on a remote machine: “-m” switch)
-m Instruct a remote computer to shutdown (can be used with the restart & abort
\\computername switches)
You don’t have to use them all, but the switches you do use must be in the following order:
How To:
Open the command prompt: Windows Key + R then type the command below and hit
OK:
cmd
Note: You could type the shutdown command directly into the Run dialog. I don’t advise
this. If there is a typo or error, you won’t know. There is no information given!
shutdown -s
“shutdown” tells the computer what command we want to execute and the “-s” switch
tells it what to do, which is to shutdown!
Specify Time
shutdown -s -t 60
Now we have added the “-t” switch and a variable, which in this case is “60″. This
number is the number of seconds before the computer is shutdown. A dialog will open
and display a count down timer!
The “-c” switch will allow you to give the user some information for the reason of the
shutdown.
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, in
this case, a computer named “desktop”. For this to work, you must have administrative
access to the computer! To see of you do, hit Windows Key + R then type the
computer’s name, i.e.:
\\desktop
If you can connect to it, you will be asked to log into the machine with a user name and
password. Once confirmed, a window will open displaying the directories available to
you. Now you know you can shut it down remotely.
Cancel Shutdown
Let’s say that you need to cancel a shutdown in progress. Go to the computer in
question, hit Windows Key + R then type command below:
shutdown -a
This will abort the shutdown, assuming there is a counter and it hasn’t reached zero yet!
Faster Shutdowns Using the Run Dialog