Windows 11 Command to Reboot: Full Guide
In this article
The quickest command to reboot Windows 11 is shutdown /r /t 0 entered in Command Prompt, PowerShell, or the Run dialog (Win+R). This forces an immediate restart; replace 0 with a number of seconds to delay the reboot (e.g., /t 30 waits 30 seconds).
Why Use a Command Instead of the Start Menu?
Most people restart by clicking the Start button, then Power, then Restart. That works fine, but a command gives you more control and speed. Typing shutdown /r is often faster than navigating menus, especially if you're already in a terminal. It also works in situations where the Start menu is unresponsive (though if the system is truly hung, a command won't help either). Commands are also scriptable: you can combine a reboot with other tasks, schedule it, or run it remotely via SSH or PowerShell remoting. For IT admins or power users, the command line is the most reliable and repeatable method.
Essential Reboot Command Variations
The shutdown.exe utility is built into every Windows version since XP, so these commands work on Windows 10 and 11 alike. Here are the most useful forms:
shutdown /r– Restart the PC (default: warns user, waits 60 seconds if no /t).shutdown /r /t 0– Restart immediately, no warning.shutdown /r /t 30– Restart after 30 seconds (useful for giving you time to cancel).shutdown /r /o– Restart into Advanced Startup Options (recovery environment).shutdown /r /f– Force close all running apps without warning (can cause data loss).shutdown /a– Abort a pending shutdown or restart (only works before it begins).
How to Run the Reboot Command
You have several options to execute the command, depending on your context:
- Run dialog: Press Win+R, type
shutdown /r /t 0, press Enter. - Command Prompt: Open Start, type
cmd, right-click “Command Prompt” and choose “Run as administrator” (not required for basic restart), then type the command. - PowerShell: Right-click Start and select “Windows Terminal” or “PowerShell”, then type the same command.
- Create a desktop shortcut: Right-click desktop → New → Shortcut, enter
shutdown /r /t 0as the location, name it “Restart”.
If you're in a full-screen app or game and the Start menu is hidden, Win+R usually still works. For a truly immediate restart without any prompts, use /t 0.
Common Problems and How to Avoid Them
The most frequent mistake is forgetting the /t flag: shutdown /r alone waits 60 seconds by default, which can catch you off guard. Another issue is using /f unnecessarily – it closes apps without saving, so you might lose unsaved work. If you get an error like “Access denied”, you might need to run the command as administrator, though a standard user can usually restart their own session. If the command seems to do nothing, check the event log or try shutdown /r /t 0 /f as a last resort (but again, force-closing is risky).
Reboot vs. Shutdown vs. Restart: What's the Difference?
In Windows, “restart” (or “reboot”) fully shuts down and then starts the system again, clearing memory and reloading the kernel. A “shutdown” (shutdown /s) powers off the machine completely. The key difference is that a restart is often needed after installing updates or drivers because the system must reload core components. Windows 11 also has a “Fast Startup” feature that makes shutdowns faster by hibernating the kernel, but a restart bypasses that and does a full boot – which is why “Restart” is the recommended fix for many performance issues.
Command vs. GUI: Which Should You Use?
For most users, the Start menu is perfectly adequate. The command line shines when you need to automate or customize. For example, you can create a batch file that runs updates and then reboots, or you can use shutdown /r /o to boot into recovery mode without clicking through Settings. If you're troubleshooting a system that won't boot properly, the command line from the recovery environment is often the only way to initiate a restart. In short, use the GUI for everyday needs; use the command when you want control, speed, or scripting.
Is It Safe to Force a Restart?
Using shutdown /r /f is generally safe for the operating system, but it can cause data loss in open applications. Windows will not save unsaved documents; it simply terminates processes. This is different from a hard power-off (holding the power button), which can corrupt system files. So, while a forced restart is safer than yanking the plug, it's still wise to save your work first. If you're in a situation where the system is frozen and commands don't work, you may need to use the physical power button, but that's a last resort.
Frequently Asked Questions
What is the command to restart Windows 11?
The command is shutdown /r. Add /t 0 to restart immediately, or specify a delay in seconds, like /t 60 for one minute.
How do I restart Windows 11 from Command Prompt?
Open Command Prompt (you don't need admin rights for a basic restart), type shutdown /r /t 0, and press Enter. Your PC will restart right away.
What does shutdown /r /t 0 mean?
/r means restart, /t sets the time delay in seconds, and 0 means zero seconds – so it restarts immediately.
How do I cancel a scheduled restart?
If you've set a delay (e.g., shutdown /r /t 60) and want to cancel, type shutdown /a in the same command prompt before the time expires.
Is there a difference between restart and reboot?
No, they are the same thing. “Reboot” is the older term from the days of “booting” the system; Windows uses “Restart” in its UI, but the command still uses /r.
Can I use the command to restart a remote PC?
Yes, you can add /m \computername to the command, like shutdown /r /m \PC-Name, but you need appropriate permissions and the remote system must be reachable.