The shutdown /r /t 0 command is the quickest way to shut down and immediately restart your Windows PC—no mouse clicks or GUI needed. It works in Command Prompt or Task Manager and is the go-to for troubleshooting, updates, or emergencies when you can’t wait for the standard shutdown dialog. All you need is administrative access, and the steps are identical for any modern Windows version (10/11) or domain-joined workstation.

What You'll Need

  • Admin rights to the PC (you’ll need to run Command Prompt as administrator).
  • Access to a keyboard (to type the command).
  • Power access to the PC (unplugging during a restart is risky and can damage hardware).

Step-by-Step

  1. Open Command Prompt as Administrator: Press Win + X on your keyboard, then select Terminal (Admin) or Command Prompt (Admin) from the menu. If prompted by UAC (User Account Control), click Yes.
    Labels may vary slightly between Windows versions or manufacturers (e.g., some systems use "Windows Terminal" or "PowerShell").
  2. Type the restart command: Enter this exact syntax in the prompt: shutdown /r /t 0
    • /r: Restart the system (shuts down then boots back up).
    • /t 0: Immediate restart (no delay).
  3. Confirm by pressing Enter: The command will display a prompt like this: Are you sure you want to restart the PC? (Y/N): Type Y and press Enter to proceed.
  4. Wait for the reboot: The PC will shut down and restart automatically within 10–30 seconds (depending on pending tasks).
    If the PC freezes during shutdown, try holding the power button for 5 seconds to force an emergency restart. This may delete unsaved work.

Alternate Methods

If Command Prompt fails, use these workarounds:
  1. Via Task Manager: Press Ctrl + Shift + Esc to open Task Manager, go to the File tab, and click Restart.
    This method doesn’t support immediate restarts or delays.
  2. Using the Start Menu (Windows 10/11): Hold the Win key, press X, then select Shutdown & sign out, choose Restart. This defaults to a 10-second delay.
  3. From the System Tray: Click the battery icon in the taskbar, then the Power dropdown and restart.

Common Mistakes

  • Running as non-admin: The command only works if you’re logged in as an administrator. If prompted, click Yes to elevate.
  • Typo in the command: A misspelling (e.g., shutdown /t 1) will show a delay. Correct: /r /t 0.
  • Ignoring the shutdown prompt: The system will still restart, but you’ll lose unsaved files. Use /f to force a shutdown without saving prompts (not recommended).
  • Plugging out cables mid-restart: Unplugging power during shutdown can corrupt the system or damage hardware. Only unplug if the PC is frozen and unresponsive.

Tips

  • Schedule frequent restarts: Add this line to your startup scripts (e.g., in Startup folder) to auto-restart every 24 hours: shutdown /r /t 86400 (86400 = 24 hours in seconds).
  • Use in scripting: This command is the foundation for Windows batch files (e.g., start /wait cmd /c shutdown /r /t 0) or PowerShell scripts.
  • Check pending tasks: If the restart doesn’t happen, open Command Prompt and run: shutdown /a to abort the pending command.
  • Windows Pro/Enterprise users: Use shutdown /r /f to force a restart without saving the shutdown dialog (no user confirmation).

Troubleshooting

  1. Command Prompt won’t open: Restart your PC and try again. If still stuck, check if Windows is running in Safe Mode (hold Shift while clicking the Shutdown button).
  2. Restart fails after a few seconds: The system may be waiting for pending tasks. Run this to clear them: shutdown /a Then retry the restart command.
  3. PC doesn’t respond to commands: Force a shutdown by holding the power button for 5 seconds. This may clear temporary errors but could cause data loss.
  4. Restart takes longer than expected: Check for background processes using tasklist and close unnecessary apps (e.g., browser extensions, antivirus services).
  5. Domain-joined workstation: If your PC is part of a domain, you may need to run the command via an elevated PowerShell session or use shutdown /r /f /c "Admin Restart".

Frequently Asked Questions

What if my PC doesn’t restart after using the command?

The command may be ignored if the system is locked or running third-party security software. Try shutdown /a to abort pending tasks, or restart in Safe Mode to bypass conflicts.

Can I use this command to shut down instead of restart?

Yes, replace /r with /s (shutdown) to halt the PC immediately. Example: shutdown /s /t 0.

Will this method work on a laptop with non-functional power buttons?

No. The shutdown /r /t 0 command only works if the PC responds to keyboard commands. For a laptop, you’ll need to use a USB-to-serial adapter to send the command remotely.

Is there a way to restart a remote PC without admin access?

No. Remote desktop tools (e.g., Remote Desktop Service) require admin rights to execute shutdown commands on another machine.

What happens if I type the wrong command (e.g., shutdown /t 1)?

The PC will wait 1 minute before restarting, showing a notification. To cancel, run shutdown /a in Command Prompt.

Can I use this on Linux/macOS?

No. This command is specific to Windows. Linux uses sudo reboot or macOS uses sudo shutdown -r now.