How to Schedule a Shutdown in Windows 10 and 11 (and Cancel It)

Windows includes a built-in shutdown command that can turn off or restart a PC after a countdown. You can run it from Command Prompt, Windows Terminal or the Run dialog, and you can cancel a pending shutdown before the timer expires. This guide covers Windows 11 and Windows 10.
Quick example: to schedule a shutdown in one hour, run shutdown /s /t 3600. To cancel the countdown, run shutdown /a in a new command window.
What the shutdown command switches mean
| Switch | Meaning |
|---|---|
/s |
Shut down the computer. |
/r |
Restart the computer. |
/t 3600 |
Set a countdown of 3,600 seconds (one hour). Replace the number with the delay you need. |
/a |
Abort a pending shutdown during its countdown. |
/f |
Force running applications to close without warning. This can cause loss of unsaved work. |
Microsoft documents these switches for both Windows 10 and Windows 11. One important detail: when the timeout is greater than zero, Windows treats /f as implied. Save open documents and close applications before starting a timed shutdown. Do not add /f casually; it can close programs without giving them a chance to ask you to save.
Method 1: Schedule a shutdown from Command Prompt
- Save your work and close any applications that should not be interrupted.
- Press Win + R to open the Run dialog.
- Type
cmdand press Enter. You can also open Windows Terminal or Command Prompt from Start. - Enter the command below, replacing
3600with the number of seconds you want.
shutdown /s /t 3600
This example starts a one-hour countdown. The computer displays a shutdown notification and shuts down when the countdown ends.
Note: These original screenshots are from an older Windows interface. The command syntax is documented for Windows 10 and Windows 11, but the appearance of the dialogs and notifications can differ by version and settings.
How to cancel a scheduled shutdown
If you started the countdown by mistake or need to keep using the PC, cancel it before the timer expires:
- Open a new Command Prompt or Windows Terminal window.
- Run this command:
shutdown /a
Windows should confirm that the scheduled shutdown has been aborted. The /a switch cancels a pending shutdown; it cannot reverse a shutdown that has already completed.
Schedule a restart instead of a shutdown
Use /r in place of /s when you want Windows to restart after a delay. For example, this command schedules a restart in ten minutes:
shutdown /r /t 600
To cancel that pending restart, run shutdown /a before its countdown ends.
Create desktop shortcuts for shutdown and cancel
If you use these commands regularly, create separate desktop shortcuts so you do not have to type them each time. The original screenshots below are retained as visual references; the wording and layout of the Windows shortcut wizard may look different on current versions.
Shortcut to schedule a one-hour shutdown
- Right-click an empty area of the desktop and select New > Shortcut.
- In the location box, enter:
C:\Windows\System32\shutdown.exe /s /t 3600
- Select Next, give the shortcut a clear name such as Shut down in one hour, and select Finish.
Shortcut to cancel a pending shutdown
- Create another desktop shortcut using the same New > Shortcut steps.
- Enter this location:
C:\Windows\System32\shutdown.exe /a
- Name it Cancel scheduled shutdown and finish creating it.
Double-click this second shortcut while the shutdown countdown is still running. It will run the abort command. If no shutdown is pending, Windows may display a message that there is no shutdown to abort.
Common problems and fixes
- The PC shuts down sooner than expected: check the number after
/t. It is measured in seconds, not minutes. For example, 600 means ten minutes. shutdown /asays there is no shutdown to abort: the countdown may already have expired, or no pending shutdown is active. The abort command only cancels a pending operation.- Applications close without asking to save: Microsoft documents that a timeout greater than zero implies the force-close behaviour. Save files before starting the timer.
- The shortcut does not run: check that the target begins with
C:\Windows\System32\shutdown.exeand that the switches are separated by spaces.
Frequently asked questions
Can I schedule a shutdown for one hour later?
Yes. Run shutdown /s /t 3600. The value after /t is the delay in seconds.
Can I cancel a shutdown after starting the timer?
Yes, while the countdown is still active. Open a new command window and run shutdown /a, or use a desktop shortcut that runs the same command.
Does this work on Windows 11 and Windows 10?
Yes. Microsoft’s current command reference lists the shutdown command for Windows 11 and Windows 10, as well as supported Windows Server versions.
Does a timed shutdown force-close open applications?
Microsoft states that a timeout greater than zero implies the /f option. That option closes running applications without warning and can result in unsaved data being lost. Save your work before scheduling the shutdown.
Conclusion
The built-in Windows shutdown command is a simple way to schedule a one-time shutdown or restart. Use shutdown /s /t with a delay in seconds, and use shutdown /a to cancel the pending operation before the timer expires. Because timed shutdowns can force applications to close, save your work first and use the commands carefully.
Official reference
For the complete list of switches and their behaviour, see Microsoft’s shutdown command documentation.













