Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows 11 Command Prompt Reboot: How to Restart

· 5 min read · Home Tech

In this article
  1. Why Use Command Prompt to Reboot?
  2. How the Shutdown Command Works
  3. Step-by-Step: Rebooting via Command Prompt
  4. Choosing Between Restart and Shutdown
  5. Common Problems and Solutions
  6. Comparison with Other Restart Methods
  7. Safety and Precautions
  8. Alternatives to the Command Prompt
  9. Frequently Asked Questions

To reboot Windows 11 from the Command Prompt, type shutdown /r /t 0 and press Enter. This command immediately restarts your PC; replace 0 with a number of seconds to delay the restart (e.g., /t 60 for one minute).

Why Use Command Prompt to Reboot?

Most users restart Windows through the Start menu, but the Command Prompt offers a faster, scriptable, and sometimes necessary alternative. It is especially useful when the graphical interface is unresponsive, when you need to restart multiple machines remotely, or when you want to schedule a restart as part of a batch file. The shutdown command has been part of Windows for decades, so it works identically in Windows 11, 10, and earlier versions.

How the Shutdown Command Works

The shutdown.exe utility communicates directly with the Windows kernel to initiate a system state change. When you run shutdown /r, it sends a restart request that closes all running processes, flushes file caches, and reboots the machine. The /t parameter sets a timeout in seconds before the action occurs, allowing you to cancel it if needed. The command accepts several flags:

  • /r – restart the computer
  • /s – shut down completely
  • /t xxx – set the delay in seconds (default is 30 if omitted)
  • /a – abort a pending shutdown (only works during the timeout period)
  • /f – force close running applications without warning (can cause data loss)

Step-by-Step: Rebooting via Command Prompt

  1. Open Command Prompt: press Win + R, type cmd, and press Enter. For admin tasks, right-click the Start button and select “Terminal (Admin)” or “Command Prompt (Admin)”.
  2. Type shutdown /r /t 0 and press Enter. Your PC will restart immediately.
  3. To schedule a restart after 5 minutes, type shutdown /r /t 300.
  4. To cancel a scheduled restart, type shutdown /a before the timer expires.

If you want to restart with a custom message for other users (on a multi-user system), add /c "message" (e.g., shutdown /r /t 60 /c "System update in 1 minute").

Choosing Between Restart and Shutdown

Restarting (/r) fully reloads the Windows kernel, clears memory, and applies pending updates. A complete shutdown (/s) also powers off the system, but on many modern PCs with Fast Startup enabled, a shutdown does not fully reset the kernel—it hibernates it. Therefore, if you are troubleshooting a slow system or a driver issue, a restart is often more effective than a shutdown followed by a power-on. The Command Prompt gives you precise control over which action to perform.

Common Problems and Solutions

One frequent issue is receiving “Access denied” when running the shutdown command. This usually means you don’t have administrative privileges—open Command Prompt as Administrator. Another problem is that the command appears to do nothing; this can happen if you omitted the /t flag, which defaults to a 30-second delay. You might also see a pop-up warning that Windows is about to shut down; that’s normal. If you accidentally schedule a restart, use shutdown /a to cancel it. For remote computers, you must have appropriate permissions and use /m \\computername (e.g., shutdown /r /m \\192.168.1.10).

Comparison with Other Restart Methods

Windows 11 offers several ways to restart: the Start menu (Power icon), the Ctrl+Alt+Del screen, the Alt+F4 dialog, and the Command Prompt. The Start menu is simplest for everyday use, but it requires multiple clicks. The Command Prompt is faster for keyboard-centric users and allows scripting. PowerShell offers a similar Restart-Computer cmdlet, but the shutdown command works in both cmd and PowerShell. For a hard reset (if the system is frozen), you may need to hold the physical power button, but that should be a last resort because it can corrupt data.

Safety and Precautions

Before restarting, save all open work and close applications to avoid data loss. The /f flag forces applications to close without saving, so use it only when necessary. Be cautious with /t 0—it gives you no time to cancel. If you are restarting a remote machine, ensure you have a way to regain access (e.g., remote management tools) in case the system fails to boot. Also, note that the shutdown command will not work if the system is in a sleep or hibernate state; you must wake it first.

Alternatives to the Command Prompt

If you prefer a graphical method, the Start menu and the Alt+F4 dialog (with the desktop focused) both offer a restart option. For more advanced control, PowerShell’s Restart-Computer cmdlet is more flexible for scripting. You can also create a desktop shortcut that runs shutdown /r /t 0 for one-click restarts. For scheduled restarts, Task Scheduler can run the command at specific times.

Frequently Asked Questions

How do I restart Windows 11 from Command Prompt?

Open Command Prompt and type shutdown /r /t 0 then press Enter. This restarts immediately. To delay, change 0 to the number of seconds.

Can I cancel a restart after typing the command?

Yes, if you set a delay (e.g., /t 60), you can type shutdown /a within that time to abort. If you used /t 0, there is no chance to cancel.

Why does my computer not restart when I type the command?

Common causes: you are not running as administrator, you mistyped the command, or the system is in a sleep state. Ensure you use the correct syntax and wake the PC first.

Is there a difference between restart and shutdown in Windows 11?

Yes. With Fast Startup enabled, shutdown hibernates the kernel, while restart fully resets it. Restart is better for troubleshooting and applying updates that need a full reboot.

Can I use this command to restart a remote computer?

Yes, use shutdown /r /m \\computername. You need administrative rights on the remote machine and may need to specify a user account with /u and /p.