KEMBAR78
Shutdown Cheat Sheet | PDF | Booting | Command Line Interface
0% found this document useful (0 votes)
120 views1 page

Shutdown Cheat Sheet

This document describes the various options that can be used with the shutdown command in Windows to control how and when a system shutdown, restart, log off, or hibernation occurs. Some of the key options include: /s - Shuts down the computer. /r - Restarts the computer after shutdown. /l - Logs off the current user immediately. /t xxx - Sets the timeout period before shutdown to xxx seconds. /d [p|u:]xx:yy - Lists the reason for restart or shutdown with a major and minor reason code. /c "comment" - Enables a comment about the reason for shutdown to be included.

Uploaded by

grof77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views1 page

Shutdown Cheat Sheet

This document describes the various options that can be used with the shutdown command in Windows to control how and when a system shutdown, restart, log off, or hibernation occurs. Some of the key options include: /s - Shuts down the computer. /r - Restarts the computer after shutdown. /l - Logs off the current user immediately. /t xxx - Sets the timeout period before shutdown to xxx seconds. /d [p|u:]xx:yy - Lists the reason for restart or shutdown with a major and minor reason code. /c "comment" - Enables a comment about the reason for shutdown to be included.

Uploaded by

grof77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/fw] [/f] [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

/i Displays the Remote Shutdown box. The /i option must be the first /o Goes to the Advanced boot options menu and restarts the device. This
parameter following the command. If /i is specified, all other options are option must be used with the /r option.
ignored.
/f Forces running applications to close without warning users.
/l Logs off the current user immediately, with no time-out period. You
cannot use /l with /m or /t.
Caution: Using the /f option might result in loss of unsaved data.

/s Shuts down the computer. /m \\<computername> Specifies the target computer. Can't be used with
the /l option.
/sg Shuts down the computer. On the next boot, if Automatic Restart Sign-
On is enabled, the device automatically signs in and locks based on the /t <xxx> Sets the time-out period before shutdown to xxx seconds. The valid
last interactive user. After sign in, it restarts any registered applications. range is 0-315360000 (10 years), with a default of 30. If the timeout
period is greater than 0, the /f parameter is implied.
/r Restarts the computer after shutdown.
/d [p | u:]<XX>:<YY> Lists the reason for the system restart or shutdown.
/g Shuts down the computer. On the next restart, if Automatic Restart The supported parameter values are:
Sign-On is enabled, the device automatically signs in and locks based on
the last interactive user. After sign in, it restarts any registered p - Indicates that the restart or shutdown is planned.
applications. u - Indicates that the reason is user-defined.
/a Aborts a system shutdown. Effective only during the time-out period. To
use /a, you must also use the /m option. NOTE
/p Turns off the local computer only (not a remote computer)—with no
time-out period or warning. You can use /p only with /d or /f. If your If p or u aren't specified, the restart or shutdown is unplanned.
computer doesn't support power-off functionality, it will shut down
xx - Specifies the major reason number (a positive integer, less than 256).
when you use /p, but the power to the computer will remain on.
yy Specifies the minor reason number (a positive integer, less than 65536).
/h Puts the local computer into hibernation, if hibernation is enabled.
The /f switch can be used with the /h switch.

/hybrid Shuts down the device and prepares it for fast startup. This option must /c <comment> Enables you to comment in detail about the reason for the
be used with the /s option. shutdown. You must first provide a reason by using the /d
option and you must enclose your comments in quotation
/fw Combining this option with a shutdown option causes the next restart to
marks. You can use a maximum of 511 characters.
go to the firmware user interface.
/? Displays help at the command prompt, including a list of the major and minor
/e Enables you to document the reason for the unexpected shutdown on
reasons that are defined on your local computer.
the target computer.

You might also like