WINDOWS/SOFTWARE Tutorials

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.

Advertisement

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

  1. Save your work and close any applications that should not be interrupted.
  2. Press Win + R to open the Run dialog.
  3. Type cmd and press Enter. You can also open Windows Terminal or Command Prompt from Start.
  4. Enter the command below, replacing 3600 with 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.

Advertisement



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:

  1. Open a new Command Prompt or Windows Terminal window.
  2. 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

  1. Right-click an empty area of the desktop and select New > Shortcut.
  2. In the location box, enter:
C:\Windows\System32\shutdown.exe /s /t 3600
  1. Select Next, give the shortcut a clear name such as Shut down in one hour, and select Finish.


Shortcut to cancel a pending shutdown

  1. Create another desktop shortcut using the same New > Shortcut steps.
  2. Enter this location:
C:\Windows\System32\shutdown.exe /a
  1. 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 /a says 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.exe and 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.

Nitish

My Parents call me Nishu, and I am registered in my death certificate as. . . Oh sorry, in my birth certificate as Nitish Andola. Friends Often Also Call Me as Andy. I hate people who act over smart. I don’t take lot of time to adjust with anybody. It’s my strength rather. I love to live with my friends. I love all those who feel comfortable with me and who make me feel comfortable with them… I always think positive, which have never helped me to achieve anything, but still it has become a habit. I forgive people soon, as I feel this life is too short and we have no time to prove others wrong. I love innovative things. And friends sometime call me as HiFi. I love to be Honest, and one thing I have observed about myself is, I am not a Fan, I believe there is good and bad in everyone and we need to embrace the good. I enjoy the company of people who are FREE. I too love to live freely! I like to interact with nature and am very much interested in adventure sports and fascinated by Astronomy. I respect each and every person on this earth, sometimes even things and like to be a free spirit. Some don't like that, but that's the way I am. I never think badly for anyone...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button