Original
Shutdown.exe-used to shut down or restart the computer. It also supports writing the restart explanation to event log.
Usage: shutdown [/I |/L |/S |/R |/A |/p |/h |
[/M \ computer] [/t xxx] [/d [P:] XX: yy [/C "comme
No parameter display help. This corresponds to the type /? Is the same
/? Show Help. This is the same as not typing any options
/I displays the graphical user interface (GUI ).
This must be the first option
/L log out. This cannot be used with the/m or/D option
/S shut down the computer
/R Disable and restart the computer
/A discard the system shutdown.
This can only be used during timeout
/P shut down the local computer without timeout or warning.
This can only be used with the/D option
/H sleep the local computer.
This can only be used with the/F Option
/E. Record the cause of computer shutdown in the document
/M \ computer specifies the target computer
/T XXX sets the timeout before closing to XXX seconds.
Valid range: 0-600; default value: 30
/C "comment" comments about the reason for restarting or disabling.
Up to 127 characters allowed
/F force running applications Program Close without prior warning
/D [P:] XX: yy provides reasons for restarting or disabling
P indicates that the restart or shutdown is planned.
XX is the primary cause Number (a positive integer smaller than 256)
YY is the secondary cause Number (a positive integer smaller than 65536)
Cause on this computer:
(E = expected u = unexpected P = plan, c = custom)
CATEGORY Primary Secondary title
U 0 0 others (no plan)
E 0 0 others (no plan)
E p 0 0 others (planned)
U 0 5 other faults: The system does not respond
E 1 1 hardware: Maintenance (not planned)
E p 1 1 hardware: Maintenance (planned)
E 1 2 hardware: Installation (not planned)
E p 1 2 hardware: Installation (planned)
P 2 3 Operating System: upgrade (planned)
E 2 4 Operating System: reconfiguration (no plan
E p 2 4 Operating System: reconfiguration (planned)
P 2 16 operating system: service package (in Plan)
2 17 operating system: hotfix (not scheduled)
P 2 17 operating system: hot Patching (under Planning)
2 18 Operating System: Security patching (no plan
P 2 18 Operating System: Security patching (under Planning)
E 4 1 Application: Maintenance (not planned)
E p 4 1 Application: Maintenance (planned)
E p 4 2 Application: Installation (in Plan)
E 4 5 Application: No Response
E 4 6 applications: unstable
U5 15 system fault: STOP error
E 5 19 Security Questions
U 5 19 Security Questions
E p 5 19 Security Questions
E 5 20 lost network connectivity (not planned)
U 6 11 power failure: wire unplugged
U 6 12 power supply fault: Environment
P 7 0 old API Shutdown