Reboot Windows 11 via Command Prompt
In this article
Yes, you can reboot Windows 11 via Command Prompt by running the shutdown /r /t 0 command. This instantly restarts your PC, and you can add flags like /f to force-close running apps or /t to set a delay in seconds.
Why Use Command Prompt to Restart?
Most people click the Start menu, hit the power icon, and choose Restart. That works fine, but Command Prompt (or PowerShell, or Windows Terminal) gives you more control and is often faster if you're already working in a terminal. It's also the only practical way to restart a remote machine via SSH or a scheduled task, and it's essential when the Start menu is frozen or the graphical shell (explorer.exe) has crashed. In those situations, a command-line reboot can be the difference between a quick fix and a forced power button hold.
Another common use is scripting. If you're installing software, applying updates, or running a batch file that needs a reboot at the end, you can embed shutdown /r /t 30 to give the user 30 seconds to save work. The command has been a staple of Windows for decades, so it works identically in Windows 11, 10, 8, and even older NT-based systems.
The Exact Commands You Need
Open Command Prompt as administrator (type cmd in the Start search, right-click, and select "Run as administrator") or just open a normal Command Prompt window—restarting doesn't require admin rights unless you're changing system settings. Here are the core commands:
shutdown /r– Restart the PC after a default 30-second delay (you'll see a system notification).shutdown /r /t 0– Restart immediately, no delay.shutdown /r /t 60– Restart after 60 seconds.shutdown /r /f– Force close all running applications without warning. Use this only if you have no unsaved work.shutdown /r /o– Restart into the Advanced Startup Options (recovery environment). This is useful for Safe Mode or troubleshooting.shutdown /a– Abort a pending restart. This works only if you issue it before the timer reaches zero.
You can combine flags, e.g., shutdown /r /f /t 0 forces an immediate restart. That's the command most IT pros use when they need a guaranteed reboot.
How to Choose the Right Command
The right command depends on your situation. If you're just rebooting normally, shutdown /r /t 0 is fine. If you're running a script and want to give the user a chance to save work, use a delay like /t 60. If the system is hung and apps won't close, add /f. If you're troubleshooting boot issues, use /o to enter the recovery environment.
One common mistake is using /s instead of /r—/s shuts down (powers off) instead of restarting. Another is forgetting that /t requires a value; shutdown /r /t alone will error out. Also note that /f can cause data loss if you have unsaved documents, so use it deliberately.
Common Problems and How to Fix Them
If you type shutdown /r and get "Access denied," you're likely not running as administrator—though for a basic restart that's unusual. If the command seems to do nothing, check if a Group Policy or a third-party app is blocking shutdown. You can also try shutdown /r /t 0 /f to bypass any hanging processes.
Another issue: the restart initiates but then the system hangs on a blue screen or a spinning circle. That's usually a driver or hardware problem, not a command issue. In that case, use shutdown /r /o to get into the recovery environment and try Startup Repair or Safe Mode.
If you accidentally set a long delay and want to cancel, quickly run shutdown /a in the same Command Prompt window. This aborts the shutdown sequence, but only if the timer hasn't reached zero.
Command Prompt vs. PowerShell vs. Run Dialog
You can also use PowerShell or the Run dialog (Win+R) to execute the same shutdown command. PowerShell accepts the same syntax, so shutdown /r /t 0 works there too. The Run dialog is actually the fastest way if you're not already in a terminal: press Win+R, type shutdown /r /t 0, and hit Enter.
Why use Command Prompt over the GUI? For remote management, for scripting, and for consistency across Windows versions. The GUI restart button doesn't offer a delay, force-close, or recovery mode options—it's just a simple restart. Command Prompt gives you those extras in one line.
Is It Safe? What About Unsaved Work?
Restarting via Command Prompt is perfectly safe as long as you don't use /f unnecessarily. Without /f, Windows will try to close applications gracefully, prompting you to save work if an app has unsaved changes. With /f, it kills everything immediately—no prompts, no mercy. Always save your files before using /f, or better yet, avoid /f unless the system is unresponsive.
A related misconception is that shutdown /r is somehow more "hard" than the Start menu restart. It's not—it sends the same system call. The only difference is the extra flags you choose. The Start menu restart is effectively shutdown /r /t 0 without the force flag.
Alternatives to Command Prompt
If you don't want to type, you can restart via PowerShell with Restart-Computer (which is more PowerShell-native), or use the classic shutdown.exe from any terminal. You can also create a desktop shortcut that runs shutdown /r /t 0 for one-click restarts. For remote PCs, you can use shutdown /r /m \computername if you have admin rights on that machine.
For scheduled restarts, you can use Task Scheduler to run the command at a specific time. That's handy for nightly reboots to clear memory leaks.
Frequently Asked Questions
How do I restart Windows 11 from Command Prompt?
Open Command Prompt and type shutdown /r /t 0 then press Enter. Your PC will restart immediately. If you want a delay, replace 0 with the number of seconds.
What does shutdown /r /t 0 mean?
/r means restart, /t sets the time delay in seconds, and 0 means zero seconds—so the restart happens instantly. Without /t, the default delay is 30 seconds.
Can I cancel a restart after I've entered the command?
Yes, if you type shutdown /a in the same Command Prompt window before the timer reaches zero, it will abort the restart. This works only while the shutdown is pending.
Do I need administrator rights to restart via Command Prompt?
No, a normal user can restart their own PC. Administrator rights are only needed for certain flags like /o (advanced startup) or when restarting a remote machine.
Why is my Command Prompt restart not working?
Check for typos, ensure you're using a forward slash (not backslash), and verify that no Group Policy blocks shutdown. If the command runs but nothing happens, try adding /f to force it, or check the Windows Event Log for shutdown errors.