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/Mor/Doptions 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/FWoption, 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/Fand/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. Iftimeis greater than 0, it implies the/Foption./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:yyare two numbers separated by a colon:, where the firstxxdescribes the primary reason (0-255) whileyydescribes the secondary reason (0-65535). The following is a list of possible values forxx:yywith their meanings (values may change depending on the system):Code Meaning 0:0Other 0:5Error: the system is not responding 1:1Hardware: maintenance 1:2Hardware: installation 2:2Operating system: recovery 2:4Operating system: reconfiguration 2:16Operating system: service pack 2:17Operating system: quick fix 2:18Operating system: quick security fix 4:1Application: maintenance 4:2Application: installation 4:5Application: not responding 4:6Application: unstable 5:15System error: fatal error 5:19Security issue 5:20Loss of network connectivity 6:11Power failure: cable disconnected 6:12Power failure: environment 7:0Previous 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