Allows proper local or remote shutdown of machine.
SHUTDOWN [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f] [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
- No args
- Display help. This is the same as typing /?
- /?
- Display help. This is the same as not typing any options.
- /i
- Display the graphical user interface (GUI). (This must be the first option.)
- /l
- Log off. This cannot be used with /m or /d options.
- /s
- Shutdown the computer.
- /r
- Shutdown and restart the computer.
- /g
- Shutdown and restart the computer. After the system is rebooted, restart any registered applications.
- /a
- Abort a system shutdown. (This can only be used during the time-out period.)
- /p
- Turn off the local computer with no time-out or warning. (Can be used with /d and /f options.)
- /h
- Hibernate the local computer. (Can be used with the /f option.)
- /e
- Document the reason for an unexpected shutdown of a computer.
- /m
- \\computer Specify the target computer.
- /t xxx
- Set the time-out period before shutdown to xxx seconds. (The valid range is 0-600, with a default of 30. Using /t xxx implies the /f option.
- /c “comment”
- Comment on the reason for the restart or shutdown. (Maximum of 512 characters allowed.)
- /f
- Force running applications to close without forewarning users. (/f is automatically set when used in conjunction with /t xxx.)
- /d [p|u:]xx:yy
- Provide the reason for the restart or shutdown.
- p indicates that the restart or shutdown is planned.
- u indicates that the reason is user defined.
if neither p nor u is specified the restart or shutdown is unplanned.
- xx is the major reason number (positive integer less than 256).
- yy is the minor reason number (positive integer less than 65536).
Reasons on this computer:
(E = Expected U = Unexpected P = planned, C = customer defined)
Type Major Minor Title
U 0 0 Other (Unplanned)
E 0 0 Other (Unplanned)
E P 0 0 Other (Planned)
U 0 5 Other Failure: System Unresponsive
E 1 1 Hardware: Maintenance (Unplanned)
E P 1 1 Hardware: Maintenance (Planned)
E 1 2 Hardware: Installation (Unplanned)
E P 1 2 Hardware: Installation (Planned)
P 2 3 Operating System: Upgrade (Planned)
E 2 4 Operating System: Reconfiguration (Unplanned)
E P 2 4 Operating System: Reconfiguration (Planned)
P 2 16 Operating System: Service pack (Planned)
2 17 Operating System: Hot fix (Unplanned)
P 2 17 Operating System: Hot fix (Planned)
2 18 Operating System: Security fix (Unplanned)
P 2 18 Operating System: Security fix (Planned)
E 4 1 Application: Maintenance (Unplanned)
E P 4 1 Application: Maintenance (Planned)
E P 4 2 Application: Installation (Planned)
E 4 5 Application: Unresponsive
E 4 6 Application: Unstable
U 5 15 System Failure: Stop error
E 5 19 Security issue
U 5 19 Security issue
E P 5 19 Security issue
E 5 20 Loss of network connectivity (Unplanned)
U 6 11 Power Failure: Cord Unplugged
U 6 12 Power Failure: Environment
P 7 0 Legacy API shutdown

Start
About
FAQ
Blogroll
Shop
Tips and Tricks
Windows Updates
Hotfixes
Keyboard Shortcuts
Vista's Services
Vista's Commands
Product Reviews
Glossary
Videos
Web Links

Comments
THMA
May 20, 2007 at 10:35 pm
i hate that the shutdown /t is limited to 600 seconds.
nevetsg
May 23, 2007 at 3:22 am
set up a scheduled task then…
THMA
May 24, 2007 at 10:35 am
takes more to make a scheduled task then just to:
Win+R
cmd
shutdown.exe /h /t 7200
That or a .bat on the desktop. Its not like they didn’t have it supported before. They did and in their infinite wisdom they decided 10 minutes was long enough…..
Someone you know
Aug 19, 2007 at 9:42 pm
I am trying to do shutdown /m \\computer /f but brings the ? up again what do i put to get it to work
nevetsg
Aug 20, 2007 at 3:04 am
Silly question #1, are you trying to shutdown the PC you are using or a different one on the network?
silly question #2, if it is a different PC in the “\\computer” section you are typing in the name of that other PC (or its IP should do) or leaving it saying “computer”??
Someone you know
Sep 4, 2007 at 10:16 pm
i am puting in all the info like computer name instead of computer and it is a different computer
it says access is denied(5)
The @$$
Sep 19, 2007 at 5:09 pm
Lol how do you even find out names of computers on the netwrk? I’m a noob when it comes to the command prompt, so… can someone please answer me?
Joe
Sep 27, 2007 at 2:45 pm
I don’t have a Vista machine in front of me at the moment, but I think you can get it by either right clicking the Computer icon and choosing properties, or at the command prompt, typing ipconfig /all. I’m sure there are tons of other ways as well, feel free anyone to suggest a better one!
Algis
Oct 2, 2007 at 10:14 pm
computer names:
your computer :
winkey+r
cmd + enter
ipconfig /all
you will see something like ” Host Name . . . . . . . . . . . . : SDF-1″
other computers:
ping -a x.x.x.x “ip” if you have it
Geric George
Oct 31, 2007 at 8:25 am
If it’s saying “access is denied” then make sure you have an account in the remote computer, if it’s a different usr/pwd then try opening a shared folder, so you can authenticate the usr/pwd for the remote computer. If still doesn’t work, you’ll have to to check the privileges in the remote computer, the coolest way of doing this (at least that i know, if you’re using Pro, will not work in Home) is Start > Run > gpedit.msc
Vivian Farrell
Jan 10, 2008 at 6:24 am
I am flabagasted at the fact that Microsoft has limited the timed shutdown to 10 minutes. I frequently use the timed shutdown feature to turn off my pc after I’ve gone to work if I am downloading something large or running a long task. Using the scheduler is a pain. I’d rather just ctrl+r and auto complete my shutdown command. It’s little things like this that will make my revert to XP.
Jon
Mar 23, 2008 at 11:01 pm
I heard that you can overwrite Vista’s Shutdow.exe with XP’s and then you should be able to increase the time to more than 10 min again.
I haven’t tried it thou. havent had the time to get a hold of a XP machine, and since i am running x64 i assume that i need the file from XP x64 and not XP x86
Marcos
Mar 29, 2008 at 10:04 pm
I used this command in the same way as Vivian, and the 10 minutes limitation was disappointing. I know there are some programs that do the same, but I think is better to create a batch file with the following lines:
TIMEOUT /T 3600 /NOBREAK
SHUTDOWN /S
Dingdong
Jun 22, 2008 at 6:04 pm
For some reason shutdown /t doesnt work for me anymore. when i use it, it just goes to the recent shutdown list ex.
Reasons on this computer:
(E = Expected U = Unexpected P = planned, C = customer defined)
Type Major Minor Title
U 0 0 Other (Unplanned)
E 0 0 Other (Unplanned)
E P 0 0 Other (Planned)
i tried with /t 50 and every other number. im trying to shutdown my own computer from my computer.
Mark
Jun 25, 2008 at 10:12 am
Hi all, you are not running shutdown.exe as administrator.
In the accessoires folder of the start menu, right click command prompt and choose ‘run as administrator’.
It’s still limited to 600 seconds. Bummer!
Dingdong
Jun 29, 2008 at 6:46 pm
Thanks for trying Mark but my UAC is off so i dont need to. thanks for trying though.
Leave a Comment