🚀 NEW in v2.4.29: 35+ Speed Optimizations added today!Download Now →

Home/Fix/Fix Windows Shutdown Takes Forever or Hangs

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

  1. 1Open Registry Editor
  2. 2Navigate to: HKCU\Control Panel\Desktop
  3. 3Create or modify "WaitToKillAppTimeout" — set to "2000" (2 seconds)
  4. 4Navigate to: HKLM\SYSTEM\CurrentControlSet\Control
  5. 5Create or modify "WaitToKillServiceTimeout" — set to "2000"
  6. 6In same key: set "WaitToKillAppTimeout" to "2000"
  7. 7These values control how long Windows waits for apps/services to close
  8. 8Restart and test shutdown speed — should be significantly faster

Solution 2: Identify and Fix Blocking Programs

  1. 1Check Event Viewer after a slow shutdown:
  2. 2Event Viewer → Windows Logs → System
  3. 3Look for Event ID 6006 (shutdown) and events just before it
  4. 4Common blockers: OneDrive sync, antivirus, VPN clients
  5. 5Close these manually before shutting down to test
  6. 6If "Task Host Window" blocks shutdown:
  7. 7Settings → Accounts → Sign-in options
  8. 8Turn off "Use my sign-in info to automatically finish setting up after an update"
  9. 9This prevents Task Host from delaying shutdown for user tasks

Solution 3: Fix Deeper Shutdown Issues

  1. 1Disable Fast Startup to ensure clean shutdown:
  2. 2Control Panel → Power Options → Choose what power buttons do
  3. 3Click "Change settings that are currently unavailable"
  4. 4Uncheck "Turn on fast startup"
  5. 5Clear the pagefile on shutdown (for hung pagefile issues):
  6. 6gpedit.msc → Computer Config → Windows Settings → Security Settings → Local Policies → Security Options
  7. 7Enable "Shutdown: Clear virtual memory pagefile"
  8. 8Update all drivers — GPU and network drivers are common shutdown blockers
  9. 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 Trial

No credit card required • Works on Windows 10 & 11

Automated Repairs for This Issue

Browse More Performance & Speed Guides

Share this:XRedditLinkedInEmail