Windows 10 can be told to shut down or restart after a countdown, by a command, a scheduled task, a program installer or Windows Update. If you change your mind, or something started a shutdown you didn’t want, you can usually stop it with a one-line command as long as the countdown hasn’t finished. This guide covers cancelling a pending shutdown, making a one-click cancel shortcut, stopping Windows Update restarts, and removing scheduled shutdowns so they don’t come back.
Quick Answer
Press Windows key + R, type shutdown /a, and press Enter. A notification confirms that the scheduled shutdown has been cancelled. This only works while a countdown is still running.

Cancel a Pending Shutdown With shutdown /a
- Press Windows key + R to open the Run box. (You can also use Command Prompt, PowerShell or Windows Terminal.)
- Type shutdown /a (“a” stands for abort).
- Press Enter or click OK.
You’ll see a notification that says Logoff is cancelled or that the scheduled shutdown has been cancelled. If you see “Unable to abort the system shutdown because no shutdown was in progress (1116)”, there’s no countdown to cancel, or it’s already too late.
When shutdown /a Works (and When It Doesn’t)
- Works: during the timeout period of a shutdown started with
shutdown /s /torshutdown /r /t, or by a program that uses a countdown, such as some installers. - Doesn’t work: once Windows shows “Shutting down” or “Restarting,” or after you click Shut down from the Start menu. Windows Update restarts in progress also can’t be aborted.
- Apps blocking shutdown: if Windows shows a screen listing apps that are preventing shutdown, click Cancel to go back to the desktop and save your work.
Create a Cancel-Shutdown Shortcut
- Right-click an empty area of the desktop and choose New > Shortcut.
- Type shutdown /a and click Next.
- Name it “Cancel Shutdown” and click Finish.
- Optional: right-click the shortcut, choose Properties > Change Icon, and pick a stop icon. You can also set a Shortcut key such as Ctrl + Alt + A.
Double-click it any time a shutdown timer is running.
Stop Windows Update From Restarting Your PC
- Reschedule a pending restart: go to Settings > Update & Security > Windows Update and click Schedule the restart to pick a later time.
- Set active hours: click Change active hours and set the times you usually use the PC. Windows won’t restart automatically during them.
- Pause updates: click Pause updates for 7 days, or choose a date under Advanced options.
Remove a Scheduled Shutdown for Good
If your PC keeps shutting down at the same time, something has scheduled it:
- Press Start, type Task Scheduler, and open it.
- Click Task Scheduler Library and look for tasks that run
shutdown.exe(check the Actions tab of any suspicious task). - Right-click the task and choose Disable or Delete.
Also check power settings (Settings > System > Power & sleep), third-party shutdown timer apps, and your antivirus or backup software, which can shut down after finishing a job. See how to auto shutdown Windows 10 for how these schedules are created.
Useful shutdown Command Options
shutdown /s /t 3600: shut down in one hour (3,600 seconds).shutdown /r /t 60: restart in one minute.shutdown /a: cancel a pending shutdown or restart.shutdown /h: hibernate now (no timer).
Frequently Asked Questions
Can I cancel a shutdown after clicking Shut down in the Start menu?
Only if an app blocks it and Windows shows the list of open apps; click Cancel. Otherwise, the shutdown can’t be stopped.
Why did my PC shut down unexpectedly without a countdown?
Sudden shutdowns are usually caused by overheating, power problems or crashes, not a scheduled command. Check Event Viewer under Windows Logs > System for event ID 41 or 6008.
Does shutdown /a work on Windows 11?
Yes. The command works the same way on Windows 11, 8 and 7.
Do I need administrator rights?
Not usually for your own shutdown timers. Cancelling a shutdown started by the system or another user may require an administrator Command Prompt.
Summary
- Press Windows key + R.
- Type shutdown /a and press Enter.
- Confirm the notification says the shutdown was cancelled.
- Remove recurring shutdowns in Task Scheduler.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.