To force apps to close and to restart the local computer after a one-minute delay, with the reason Application: Maintenance (Planned) and the comment "Reconfiguring myapp.exe", type: shutdown /r /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1 Operating System: Security fix (Unplanned) Operating System: Reconfiguration (Planned) Operating System: Reconfiguration (Unplanned) C: Customer Defined - Specify a custom reason for the system shutdown or restart.P: Planned - A planned shutdown or restart scheduled in advance, such as system maintenance, software installation or other.U: Unexpected - An unexpected shutdown or restart occurs where the system stops working due to an error, such as a system crash, power failure or other.E: Expected - An expected shutdown or restart that is planned and communicated in advance.The shutdown or restart reasons uses the following legend: Not using the /p parameter, and only providing the reason code for a planned shutdown, also causes the shutdown to fail. Using the /p parameter, along the reason code for an unplanned shutdown, causes the shutdown to fail. Not using the /p parameter, indicates that the shutdown was unplanned. Remember to indicate that a shutdown is planned by using the /p parameter. If the reason codes aren't defined on the target computer, Shutdown Event Tracker can't log the correct reason text. If you specify major and minor reason codes, you must first define these reason codes on each computer where you plan to use the reasons. If you want to shut down more than one computer at a time, you can call shutdown for each computer by using a script, or you can use shutdown /i to display the Remote Shutdown box. If the target computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. Users must be members of the Administrators group to annotate an unexpected shutdown of a local or remotely administered computer. Users must be assigned the Shut down the system user right to shut down a local or remotely administered computer that is using the shutdown command. Can also be used with the /d parameter.ĭisplays help at the command prompt, including a list of the major and minor reasons that are defined on your local computer. yy Specifies the minor reason number (a positive integer, less than 65536).Įnables you to create a custom reason for the system shutdown or restart, which must be enclosed in double quotation marks.xx - Specifies the major reason number (a positive integer, less than 256).If p or u aren't specified, the restart or shutdown is unplanned. U - Indicates that the reason is user-defined.P - Indicates that the restart or shutdown is planned. Lists the reason for the system restart or shutdown. If the timeout period is greater than 0, the /f parameter is implied. The valid range is 0-315360000 (10 years), with a default of 30. Sets the time-out period before shutdown to xxx seconds. This option must be used with the /r option.įorces running applications to close without warning users.Ĭaution: Using the /f option might result in loss of unsaved data. Goes to the Advanced boot options menu and restarts the device. This option must be used with the /s option.Īllows running processes and applications to gracefully close instead of forcibly terminating.Ĭombining this option with a shutdown option causes the next restart to go to the firmware user interface.Įnables you to document the reason for an unexpected shutdown of a computer in the Shutdown Event Tracker. Shuts down the device and prepares it for fast startup. The /f switch can be used with the /h switch. Puts the local computer into hibernation, if hibernation is enabled. If your computer doesn't support power-off functionality, it shuts down when you use /p, but the power to the computer remains on. Turns off the local computer only (not a remote computer)-with no time-out period or warning. Combine with /fw to clear any pending boots to firmware. Can only be used during the time-out period. After sign in, it restarts any registered applications.Īborts a system shutdown. On restart, if Automatic Restart Sign-On is enabled, the device automatically signs in and locks based on the last interactive user. After sign in, it restarts any registered applications.įully shuts down and restarts the computer. On the next boot, if Automatic Restart Sign-On is enabled, the device automatically signs in and locks based on the last interactive user. Logs off the current user immediately, with no time-out period. If /i is specified, all other options are ignored. The /i option must be the first parameter following the command. Syntax shutdown xx:yy ]ĭisplays the Remote Shutdown box. Enables you to shut down or restart local or remote computers, one at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |