1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00
tldr/pages/windows/shutdown.md

41 lines
759 B
Markdown
Raw Normal View History

2018-10-16 18:31:49 +01:00
# shutdown
> A tool for shutting down, restarting or logging off a machine.
2019-08-22 09:37:57 -03:00
> More information: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/shutdown>.
2018-10-16 18:31:49 +01:00
- Shutdown the current machine:
`shutdown /s`
2018-10-19 21:51:02 -03:00
- Shutdown the current machine force-closing all apps:
`shutdown /s /f`
2018-10-16 18:31:49 +01:00
- Restart the current machine:
`shutdown /r`
- 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 {{seconds}}`
- Specify a comment for the shutdown reason:
`shutdown /s /c "{{reason}}"`
- Abort a shutdown sequence whose timeout is yet to expire:
`shutdown /a`
- Shutdown a remote machine:
`shutdown /m {{\\hostname}}`