Cancel a Pending Windows Shutdown with shutdown /a

Abort an accidental shutdown or restart countdown before the timer runs out.

WindowssystemrebootcmdMedium risk
Run `shutdown /a` during the countdown to abort a pending shutdown or restart.

01Command

Command
$ shutdown /a

02What it does

If you accidentally ran a timed shutdown command (or Windows announces an update restart countdown), the /a switch aborts it. The command only works while the time-out period is still running, so execute it quickly. A toast notification confirms that the shutdown was cancelled.

03Risk

RiskMedium risk
RequirementsWindows 10/11; command prompt or Run dialog.
!Warning: Once the countdown reaches zero the abort no longer works, and unsaved work should still be saved manually.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Shutdown — Shutdown or restart the computer
    SS64 · technical · 2026-09-17
    Evidence: Lists SHUTDOWN /a as the abort switch that cancels a pending shutdown during the countdown.
  • shutdown
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents /a: "Aborts a system shutdown" and notes it only works during the time-out period.

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions