snippetbashTip
shutdown — A tool for shutting down, restarting, or logging off a machine. More information: <https://learn.mic
Viewed 0 times
downcommandshuttingforclirestartingtoolshutdown
windows
Problem
How to use the
shutdown command: A tool for shutting down, restarting, or logging off a machine. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/shutdown>.Solution
shutdown — A tool for shutting down, restarting, or logging off a machine. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/shutdown>.Shutdown the current machine:
shutdown /sShutdown the current machine force-closing all apps:
shutdown /s /fRestart the current machine immediately:
shutdown /r /t 0Hibernate the current machine:
shutdown /hLog off the current machine:
shutdown /lSpecify a timeout in seconds to wait before shutting down:
shutdown /s /t {{8}}Abort a shutdown sequence whose timeout is yet to expire:
shutdown /aShutdown a remote machine:
shutdown /m {{\\hostname}}Code Snippets
Shutdown the current machine
shutdown /sShutdown the current machine force-closing all apps
shutdown /s /fRestart the current machine immediately
shutdown /r /t 0Hibernate the current machine
shutdown /hLog off the current machine
shutdown /lContext
tldr-pages: windows/shutdown
Revisions (0)
No revisions yet.