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.
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
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.
$ wevtutil qe System /q:"*[System[(Level=2)]]" /c:20 /rd:true /f:textRule 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.
$ shutdown /aTurn 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.
$ reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f▾ Undo
$ reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 1 /fIf 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.
Restart directly into the Windows recovery menu (Safe Mode, Startup Repair, UEFI firmware) using one shutdown switch.
$ shutdown /r /o /t 0Confirm 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.
Use shutdown /s /t to make Windows power off automatically after a chosen number of seconds, and shutdown /a to cancel it.
$ shutdown /s /t 3600▾ Undo
$ shutdown /aHow 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.
$ shutdown /a
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 1 /fReview before running — some steps may not be independent.
Sources
- wevtutil - Windows CommandsEvidence: 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 computerEvidence: Lists SHUTDOWN /a as the abort switch that cancels a pending shutdown during the countdown.
- shutdownEvidence: Documents /a: "Aborts a system shutdown" and notes it only works during the time-out period.
- Distinguishing Fast Startup from Wake-from-HibernationEvidence: Explains that Fast Startup is a hybrid shutdown that hibernates the kernel session, so restart and full shutdown behave differently.
- powercfg - SS64Evidence: Documents powercfg /hibernate, which must be enabled for Fast Startup's kernel hibernation file to exist.
Last verified: 2026-09-21
Related guides
A Windows service that refuses to start usually has a reason hiding in the event log. Check its status and startup type, read the error, then reset it to Automatic and restart it — all from the command line.
A step-by-step CLI guide to finding out why Windows starts slowly — boot config, event log errors, startup bloat — and the fixes that actually help.
Work through repeating System and Application errors in the right order: query the log properly, look at the other places errors hide, then confirm the noise actually stops.