Skip to content

Commit 97cfccc

Browse files
Copilotrobinharwood
andcommitted
Clarify /a, /f, and /soft parameter behavior in shutdown.md
Co-authored-by: robinharwood <19212983+robinharwood@users.noreply.github.com>
1 parent cb0f73b commit 97cfccc

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

  • WindowsServerDocs/administration/windows-commands

WindowsServerDocs/administration/windows-commands/shutdown.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/sof
2727
| /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 last interactive user. After sign in, it restarts any registered applications. |
2828
| /r | Restarts the computer after shutdown. |
2929
| /g | Fully shuts down and restarts the computer. 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. |
30-
| /a | Aborts a system shutdown. Can only be used during the time-out period. Combine with **/fw** to clear any pending boots to firmware. |
30+
| /a | Aborts a pending system shutdown. This must be run as a separate command in a new command prompt window during the time-out period (for example, `shutdown /a`). Combine with **/fw** to clear any pending boots to firmware. |
3131
| /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 computer doesn't support power-off functionality, it shuts down when you use **/p**, but the power to the computer remains on. |
3232
| /h | Puts the local computer into hibernation, if hibernation is enabled. The **/f** switch can be used with the **/h** switch. |
3333
| /hybrid | Shuts down the device and prepares it for fast startup. This option must be used with the **/s** option. |
34-
| /soft | Allows running processes and applications to gracefully close instead of forcibly terminating. |
34+
| /soft | Allows running processes and applications to gracefully close instead of forcibly terminating. When used, this option overrides the implied **/f** behavior that occurs when the timeout period is greater than 0. |
3535
| /fw | Combining this option with a shutdown option causes the next restart to go to the firmware user interface. |
3636
| /e | Enables you to document the reason for an unexpected shutdown of a computer in the [Shutdown Event Tracker](/troubleshoot/windows-server/application-management/description-shutdown-event-tracker). |
3737
| /o | Goes to the **Advanced boot options** menu and restarts the device. This option must be used with the **/r** option. |
@@ -125,6 +125,18 @@ To restart the remote computer *myremoteserver* in 5 minutes due to a security u
125125
shutdown /r /t 300 /e /c "Security Update" /m \\myremoteserver
126126
```
127127

128+
To cancel a pending shutdown (must be run in a new command prompt window during the timeout period), type:
129+
130+
```
131+
shutdown /a
132+
```
133+
134+
To perform a graceful shutdown of the local computer in 2 minutes, allowing applications to close without force, type:
135+
136+
```
137+
shutdown /s /t 120 /soft /c "Graceful shutdown for maintenance"
138+
```
139+
128140
## Related links
129141

130142
- [Command-Line Syntax Key](command-line-syntax-key.md)

0 commit comments

Comments
 (0)