How to Cancel Auto Shutdown in Windows 10
In this article
To cancel an auto shutdown in Windows 10, open Command Prompt and type shutdown /a then press Enter. This aborts the shutdown if the timer hasn't already reached zero; you'll see a notification confirming the cancellation.
Why Windows 10 Shuts Down Automatically
Windows 10 can be set to shut down automatically for several reasons. The most common is a scheduled task created by the user or an app, often via the shutdown /s /t command. Other triggers include Windows Update requiring a restart, system failure settings, or power options that put the PC to sleep (not a full shutdown, but often confused). Understanding the cause helps you choose the right fix—canceling a one-time timer is different from disabling a recurring schedule.
How the Auto Shutdown Timer Works
The shutdown command in Windows 10 has a /t parameter that sets a delay in seconds. For example, shutdown /s /t 3600 schedules a shutdown after one hour. The system then displays a notification that Windows will shut down. The timer counts down in the background, and you can abort it anytime before it reaches zero. The /a flag (abort) only works if the shutdown hasn't already started—once the countdown hits zero, the shutdown process begins and can't be stopped with this command.
Step-by-Step: Cancel a Pending Shutdown
Here's how to abort a shutdown that hasn't started yet:
- Press Win + R to open the Run dialog.
- Type
cmdand press Ctrl+Shift+Enter to open Command Prompt as administrator (not strictly required for abort, but good practice). - Type
shutdown /aand press Enter. - You'll see a notification in the system tray: “Logoff is canceled.”
If you see “A system shutdown has already been scheduled” instead, the timer may have expired, or you may need to check if a restart is pending from Windows Update. In that case, the abort command won't work because the shutdown has already begun.
Alternatives: Using the Task Scheduler or Settings
If the shutdown is recurring (e.g., every night at 10 PM), you'll need to disable the scheduled task rather than just aborting it once. Open Task Scheduler (search for “Task Scheduler” in the Start menu), look under “Task Scheduler Library” for a task that runs shutdown.exe, and either disable it or delete it. Alternatively, if the shutdown is due to Windows Update, go to Settings > Update & Security > Windows Update and click “Restart now” or “Schedule restart” to manage it. For power settings that cause sleep, go to Settings > System > Power & sleep and adjust the sleep timers.
Common Problems and Misconceptions
A frequent misconception is that shutdown /a works after the countdown reaches zero—it doesn't. Another is that the command needs admin rights; it usually doesn't for aborting, but for scheduling it's fine either way. If you get “Access denied,” you may need to run Command Prompt as administrator. Also, if you're using a remote desktop session, the abort command works on the local machine, not the remote one—you'd need to run it on the remote PC. Sometimes antivirus or group policies block the shutdown command; check with your IT admin if you're on a corporate network.
Preventing Unwanted Auto Shutdowns
To avoid future surprises, be careful when using commands like shutdown /s /t—always double-check the timer. If you're using a third-party app that schedules shutdowns, look for its own settings to disable them. For Windows Update restarts, you can set active hours in Settings > Update & Security > Windows Update > Change active hours to prevent automatic restarts during your work time. If you want to disable the “automatically restart” option after a system failure, go to Control Panel > System and Security > System > Advanced system settings > Startup and Recovery, and uncheck “Automatically restart.”
Frequently Asked Questions
Can I cancel a shutdown if it's already restarting?
No. Once the shutdown or restart sequence begins (after the countdown reaches zero), the shutdown /a command won't work. You can force a stop by pressing the physical power button to turn off the PC, but that may cause data loss. It's best to abort before the timer ends.
Why does my PC shut down at a specific time every day?
This is likely a scheduled task in Task Scheduler. Open Task Scheduler, navigate to “Task Scheduler Library,” look for a task that triggers shutdown.exe or a command like shutdown -s -t, and disable or delete it. If you didn't create it, a third-party app or a system admin might have.
Does shutdown /a work for Windows Update restarts?
Sometimes. If Windows Update has scheduled a restart and the countdown hasn't started, you might be able to abort it with shutdown /a. However, Windows Update often uses its own restart logic, so it's more reliable to go to Settings > Update & Security > Windows Update and select “Restart now” or “Schedule restart” to control the timing.
How do I cancel a shutdown from a batch file?
If you have a batch file that runs shutdown /s /t, you can add a line to abort it before the timer expires: shutdown /a. You can also run the abort command manually in Command Prompt. If the batch file is scheduled, you'll need to remove or edit the schedule.
Is there a GUI way to cancel a shutdown?
Yes, you can open the Run dialog (Win+R), type shutdown /a and press OK—this works just like in Command Prompt. There's no dedicated button in Settings to cancel a pending shutdown, but the Run dialog is a quick alternative.
What if shutdown /a says “A system shutdown has already been scheduled”?
This message means the abort command failed, usually because the shutdown has already started or the timer has expired. Check if you see a “Windows will shut down in…” notification; if not, the shutdown may be in progress. In that case, you can't stop it with the command—you'll need to let it finish or force a power-off (not recommended).