How to Fix Fix Windows Shutdown Takes Forever or Hangs on Windows
Windows taking a long time to shut down? PC stuck on "Shutting down" screen? Shutdown hangs at spinning dots? Fix slow shutdown issues on Windows 10 and 11.
📖
Main Troubleshooting Guide
How to Fix Slow Computer →Complete symptoms, causes, and step-by-step solutions
Symptoms
You might be experiencing this problem if you notice:
- •Shutdown takes 5+ minutes when it used to be instant
- •PC stuck on "Shutting down" or "Restarting" with spinning dots
- •Screen goes black but power light stays on — PC won't fully turn off
- •Shutdown hangs on "Waiting for background programs to close"
- •"Task Host Window is preventing shutdown" message appears
- •Need to hold power button to force shutdown
Common Causes
- ⚠Background programs or services not responding to shutdown signal
- ⚠Windows Update pending installation during shutdown
- ⚠Corrupted pagefile or hibernation file blocking shutdown
- ⚠Driver not handling power state transition correctly
- ⚠WaitToKillServiceTimeout set too high
- ⚠Mapped network drives or open network files delaying shutdown
Solutions
Solution 1: Speed Up Shutdown Timeout
- 1Open Registry Editor
- 2Navigate to: HKCU\Control Panel\Desktop
- 3Create or modify "WaitToKillAppTimeout" — set to "2000" (2 seconds)
- 4Navigate to: HKLM\SYSTEM\CurrentControlSet\Control
- 5Create or modify "WaitToKillServiceTimeout" — set to "2000"
- 6In same key: set "WaitToKillAppTimeout" to "2000"
- 7These values control how long Windows waits for apps/services to close
- 8Restart and test shutdown speed — should be significantly faster
Solution 2: Identify and Fix Blocking Programs
- 1Check Event Viewer after a slow shutdown:
- 2Event Viewer → Windows Logs → System
- 3Look for Event ID 6006 (shutdown) and events just before it
- 4Common blockers: OneDrive sync, antivirus, VPN clients
- 5Close these manually before shutting down to test
- 6If "Task Host Window" blocks shutdown:
- 7Settings → Accounts → Sign-in options
- 8Turn off "Use my sign-in info to automatically finish setting up after an update"
- 9This prevents Task Host from delaying shutdown for user tasks
Solution 3: Fix Deeper Shutdown Issues
- 1Disable Fast Startup to ensure clean shutdown:
- 2Control Panel → Power Options → Choose what power buttons do
- 3Click "Change settings that are currently unavailable"
- 4Uncheck "Turn on fast startup"
- 5Clear the pagefile on shutdown (for hung pagefile issues):
- 6gpedit.msc → Computer Config → Windows Settings → Security Settings → Local Policies → Security Options
- 7Enable "Shutdown: Clear virtual memory pagefile"
- 8Update all drivers — GPU and network drivers are common shutdown blockers
- 9Run: sfc /scannow to repair corrupted system files
FIXES THIS IN 5 MINUTES
Fix Fix Windows Shutdown Takes Forever or Hangs Automatically
RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.
Download Now - Free TrialNo credit card required • Works on Windows 10 & 11