How can I fix "Task host window" preventing shutdown of my computer?

Rushi Thokare 0 Reputation points
2026-08-11T18:13:10.43+00:00

How can I fix "Task host window" preventing shutdown of my computer?

Windows for home | Windows 11 | Sleep and Power on, off
0 comments No comments

2 answers

Sort by: Most helpful
  1. Hendrix-V 19,835 Reputation points Microsoft External Staff Moderator
    2026-08-12T06:39:33.85+00:00

    Hi Rushi Thokare,

    The Task Host Window message usually appears when Windows is waiting for a background process or application to close before completing the shutdown. In many cases, identifying the specific process involved can help narrow down the cause.

    As a targeted check, you can review the shutdown diagnostics logs:

    1. Press Windows + R, type eventvwr.msc and press Enter.
    2. Go to Applications and Services Logs > Microsoft > Windows > Diagnostics-Performance > Operational.
    3. Look for Event ID 203 entries around the time the shutdown delay occurred.
    4. Review the details to see whether a particular app or service is being reported.

    If a specific application appears repeatedly in those events, try updating, repairing, or temporarily disabling it to see if shutdown behavior improves.

    I hope this points you in the right direction. Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. AI answer

    2026-08-11T18:13:29.66+00:00

    Task Host Window usually appears when Windows is waiting for an app or background task to close during shutdown.

    Try these fixes in order:

    1. Perform a full shutdown once
      • On the desktop or sign-in screen, hold Shift and click Shut down.
      • This temporarily disables Fast Startup for that shutdown and can allow Windows to fully close pending tasks.
    2. Disable Fast Startup
      • Open Control Panel.
      • Go to Power Options.
      • Select Choose what the power buttons do.
      • Select Change settings that are currently unavailable.
      • Clear Turn on fast startup.
      • Save changes, then restart the PC and test shutdown again.
    3. Use a full shutdown command
      • Open Run with Windows key + R.
      • Run:
             Shutdown /s /t 0
        
      • This performs a full shutdown without Hybrid Shutdown.
    4. Check for apps or updates still running
      • Unsaved files, Microsoft Store app updates, Windows Update activity, startup apps, or background apps can keep Task Host open.
      • Wait briefly at the shutdown prompt, then close any open apps and try again.
    5. Run a clean boot
      • A clean boot helps identify whether a background app or third-party service is causing the shutdown block.
      • If shutdown works after a clean boot, re-enable disabled items gradually to find the cause.
    6. If shutdown or hibernation is failing on Windows 10/8.1 systems
      • Fast Startup can contribute to shutdown problems.
      • If Event ID 45 is logged in System log, Microsoft documents a registry-based fix for DumpFilters.
      • Warning: registry changes are risky; back up the registry first.

    For older systems, Microsoft also documented specific hotfixes for shutdown delays involving TaskHost.exe on Windows 7 and Windows Server 2008 R2. If the device is actually running one of those versions, apply the hotfix intended for that exact issue.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.