SHUTDOWN
Shuts down, reboots, hibernates, or logs off the specified system.
SHUTDOWN [/I | /L | /S [/HYBRID] | /SG | /R [/O] | /G | /A | /P | /H] [/SOFT] [/FW] [/E] [/F] [/M \\remote_system] [/T time] [/C "comment"] [/D [P:|U:]xx:yy]
Where:
/I
- Displays the graphical user interface (GUI), through which you can set the local or remote system shutdown or reboot. Other options will be ignored./L
- Logs the current user off the local system. The/M
or/D
options cannot be specified./S
- Shuts down the local system or the remote system specified with/M
./SG
- Shuts down the local system or the remote system specified with/M
. If automatic login on restart is enabled, automatically logs in (prompts for password) based on the last interactive user. After logging in, all registered applications are restored./R
- Restarts the local system or the remote system specified with/M
./G
- Restarts the local system or the remote system specified with/M
. If automatic login on restart is enabled, automatically logs in (prompts for password) based on the last interactive user. After logging in, all registered applications are restored./A
- Aborts a system shutdown if executed during the countdown period (before the shutdown is actually initiated). When used with the/FW
option, clears pending boots in the firmware./P
- Shuts down the local system or the remote system specified with/M
, without waiting for a countdown period and without displaying a warning dialog. No options may be specified except/F
and/D
./H
- Hibernates the local system. No options can be specified except/F
./HYBRID
- Shuts down the system and prepares it for fast boot./O
- Goes to the advanced boot options menu before rebooting your system./SOFT
- Allows processes and applications to close without being force-quit./FW
- When used with a shutdown or restart option, specifies that the next boot will be performed in the firmware user interface. When used with/A
, clears pending boot in the firmware./E
- Specifies the reason for the unexpected shutdown in the Shutdown Event Tracker./F
- Force closes running applications without warning./M \\remote_system
- Specifies the remote system to shut down or restart. Cannot be used with the/L
(log off) or/H
(hibernate) options./T tempo
- Specifies the time in seconds to count down before shutdown or restart. You can specify a time in the range0
-315359999
(that is, up to 3650 days minus 1 second, or about 10 years). The default is 30 seconds. Iftime
is greater than 0, it implies the/F
option./C "comment"
- Specifies the comment or message to display regarding the reason for the shutdown or restart, up to 512 characters./D [P:|U:]xx:yy
- Specifies the reason for shutting down or restarting the specified system.P:
specifies that the shutdown or restart is planned, whileU:
specifies that the reason is user-defined. Without eitherP:
orU:
, the shutdown or restart is unplanned.xx:yy
are two numbers separated by a colon:
, where the firstxx
describes the primary reason (0-255) whileyy
describes the secondary reason (0-65535). The following is a list of possible values forxx:yy
with their meanings (values may change depending on the system):Code Meaning 0:0
Other 0:5
Error: the system is not responding 1:1
Hardware: maintenance 1:2
Hardware: installation 2:2
Operating system: recovery 2:4
Operating system: reconfiguration 2:16
Operating system: service pack 2:17
Operating system: quick fix 2:18
Operating system: quick security fix 4:1
Application: maintenance 4:2
Application: installation 4:5
Application: not responding 4:6
Application: unstable 5:15
System error: fatal error 5:19
Security issue 5:20
Loss of network connectivity 6:11
Power failure: cable disconnected 6:12
Power failure: environment 7:0
Previous version API shutdown
Examples:
1. Shut down your system by setting a 100-second countdown and displaying a nice greeting:
shutdown /s /t 100 /c "Hello!"
2. If executed before the 100 seconds in the previous example have passed, it stops the shutdown:
shutdown /a
Comments