Why won't my Windows PC shut down?

Windows hangs on shutdown or never powers off? Diagnose it from the event log, cancel stuck shutdown timers, disable Fast Startup and verify a clean shutdown from the command line.

WindowsregistrysystemrebootcmdDiagnosticsevent-logMedium risk
First cancel any pending shutdown with shutdown /a, then check the System event log for shutdown-related errors.

What this covers

When Windows won't shut down, the usual suspects are a queued shutdown timer, a service or driver that refuses to exit, or Fast Startup's hybrid boot getting corrupted. This guide walks you from diagnosis to a verified fix, entirely from the command line.

Symptom

?You click Shut down and the screen hangs on 'Shutting down…' with a spinner, the display goes black but the fans and power LED stay on, or the PC turns off and immediately boots back up. It may happen every time or only after certain sessions.

Check the event log for shutdown errors

Before changing anything, find out why Windows refuses to power off. Failed shutdowns usually leave Error-level entries in the System log — a driver or service that won't stop is a common culprit. Run an admin Command Prompt and filter the System log for the newest errors. If you see the same driver or service name repeated right around the time shutdowns hang, you've found your suspect.

Query the System or Application log for errors, newest first, without opening Event Viewer.

Command
$ wevtutil qe System /q:"*[System[(Level=2)]]" /c:20 /rd:true /f:text

Rule out a stuck pending shutdown

Sometimes the machine isn't refusing to shut down at all — a shutdown or restart is already queued (perhaps a scheduled one you forgot, or triggered by an update) and the PC just sits there. Aborting any pending shutdown costs nothing and instantly tells you which situation you're in: if the countdown dialog disappears and the system responds normally again, the problem was a stuck timer, not a broken shutdown.

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

Command
$ shutdown /a

Turn off Fast Startup

Fast Startup (hybrid boot) makes 'Shut down' behave like a partial hibernate, and when its saved kernel state is corrupt or a driver mishandles it, the PC hangs on shutdown or boots back up instead of powering off. Disabling it is the single most common fix for shutdown problems. Add the registry value as admin, then do a full restart (not shutdown) so the change takes effect. If the PC now shuts down cleanly, Fast Startup was the cause; if you want it back later, restore the value with the undo command.

Disable or re-enable Windows Fast Startup (hybrid boot) with the HiberbootEnabled registry value to fix shutdown and dual-boot problems.

Command
$ reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
▾ Undo
Undo
$ reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 1 /f

If it still hangs, test a clean boot environment

If shutdown still fails, the block is likely software running in your normal session — a third-party service or driver. Rebooting into the Advanced Startup menu lets you start Windows in Safe Mode, where non-Microsoft drivers and services don't load. If Safe Mode shuts down fine, go back and disable recently installed third-party services one at a time until the culprit is found. This step is optional — only do it if Fast Startup wasn't the fix.

WindowsReboot into Advanced Startup with shutdown /r /oMedium riskStep 4Optional

Restart directly into the Windows recovery menu (Safe Mode, Startup Repair, UEFI firmware) using one shutdown switch.

Command
$ shutdown /r /o /t 0

Confirm shutdown works with a short test

Don't gamble on a manual shutdown just to test — schedule one a minute out so you have a safety net. Set a 60-second timer; if the machine powers off cleanly on its own, the problem is fixed. If you change your mind mid-test (or want to keep working), cancel it before the timer runs out. A clean, on-time power-off with no spinner or black-screen hang is your proof that shutdown is healthy again.

WindowsShut down Windows on a timerMedium riskStep 5

Use shutdown /s /t to make Windows power off automatically after a chosen number of seconds, and shutdown /a to cancel it.

Command
$ shutdown /s /t 3600
▾ Undo
Undo
$ shutdown /a
!The Fast Startup fix edits the registry. Run commands from an administrator prompt, copy the command exactly, and use the provided undo command to restore Fast Startup. Force power-offs while the disk light is active can corrupt files — always cancel a pending shutdown rather than holding the power button.

How to confirm it worked

Schedule a 60-second test shutdown (shutdown /s /t 60). The PC should power off cleanly and on time, with no spinner or hang. Use shutdown /a to cancel if you change your mind.

Undo everything

Every command above can be reverted. Run these in order to undo all of it.

Undo everything
$ shutdown /a
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 1 /f

Review before running — some steps may not be independent.

Sources

  • wevtutil - Windows Commands
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents wevtutil, including the query-events (qe) command with /q XPath filter, /c count, /rd reverse direction and /f text format.
  • 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.
  • Distinguishing Fast Startup from Wake-from-Hibernation
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Explains that Fast Startup is a hybrid shutdown that hibernates the kernel session, so restart and full shutdown behave differently.
  • powercfg - SS64
    SS64 · technical · 2026-09-17
    Evidence: Documents powercfg /hibernate, which must be enabled for Fast Startup's kernel hibernation file to exist.

Last verified: 2026-09-21

Related guides