How do I shut down Windows from the command line without Shutdown?
Open a Command Prompt or PowerShell window and use the built-in Windows shutdown command:
shutdown /s /t 0-- Shut down immediatelyshutdown /r /t 0-- Restart immediatelyshutdown /l-- Log off the current usershutdown /s /f /t 0-- Force shut down immediately, closing all applications
The /t 0 parameter sets the timeout to zero seconds so the action happens right away.
Support Our Work
Please consider making a contribution today to help us keep Shutdown available for everyone.
Didn't find your answer?
Our support team can help you with your specific issue. Submit a request and we'll get back to you.
Get Help Now
Additional Information
Added: Feb 27, 2026 | Last Updated:
Added: Feb 27, 2026 | Last Updated:
