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