2025-03-14 21:59:59 -06:00
|
|
|
# shutdown
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> A tool for shutting down, restarting, or logging off a machine.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/shutdown>.
|
|
|
|
|
|
|
|
|
|
- Shutdown the current machine:
|
|
|
|
|
|
|
|
|
|
`shutdown /s`
|
|
|
|
|
|
|
|
|
|
- Shutdown the current machine force-closing all apps:
|
|
|
|
|
|
|
|
|
|
`shutdown /s /f`
|
|
|
|
|
|
|
|
|
|
- Restart the current machine immediately:
|
|
|
|
|
|
|
|
|
|
`shutdown /r /t 0`
|
|
|
|
|
|
|
|
|
|
- Hibernate the current machine:
|
|
|
|
|
|
|
|
|
|
`shutdown /h`
|
|
|
|
|
|
|
|
|
|
- Log off the current machine:
|
|
|
|
|
|
|
|
|
|
`shutdown /l`
|
|
|
|
|
|
|
|
|
|
- Specify a timeout in seconds to wait before shutting down:
|
|
|
|
|
|
|
|
|
|
`shutdown /s /t {{8}}`
|
|
|
|
|
|
|
|
|
|
- Abort a shutdown sequence whose timeout is yet to expire:
|
|
|
|
|
|
|
|
|
|
`shutdown /a`
|
|
|
|
|
|
|
|
|
|
- Shutdown a remote machine:
|
|
|
|
|
|
|
|
|
|
`shutdown /m {{\\hostname}}`
|