In this guide you’ll learn everything you need to know about Task Host Window.
You’ll find out why it shows up when you’re trying to shut down your computer and how to fix it.
Although usually simple to fix, in some cases, you’ll have to use more advanced solutions like navigating to “local machine system currentcontrolset” or the “current user control panel” in order to fix the issue that’s preventing Windows from shutting down.
With that said, most people come to know about Task Host Window when they’re trying to shut down their computers while there are still programs running in the background.
Basically, if a program is still open while you’re trying to shut down your computer, the operating system opens up a window asking to close a program or giving you the option to Shut Down anyway. For system security purposes, you should close all running programs before shutting down your Windows PC.
Usually shutting down Windows without closing the program is OK. However, if you’re working on a draft in Word or a spreadsheet in Excel, for example, you should go back and save your work before shutting down Windows because not doing so could lead to data loss.
What is Task Host Window?
Not to be confused with Host Process for Windows Tasks, Task Host Window is a Windows program that runs in the background to help protect your computer from unwanted shutdowns, so it usually shows up when you’re trying to shut down your Windows PC. Sometimes it also pops up when you’re trying to reboot your computer.
Also, in case you were wondering, Task Host Windows is not a virus.
This is how it works. When you try to shutdown or reboot your Windows computer, task host interrupts either the shutdown or reboot process to check if all programs were appropriately closed prior to shutdown. This is done in order to avoid data corruption or data loss. So, to avoid data loss, the pop up shows you which programs are running so you can go back and close them before shutting down or rebooting your pc.
According to Microsoft customer service, you should close all running programs before shutting down or rebooting your Windows-based computer.
With that said, Task Host Window is a feature, not a bug, and certainly not a virus.
Task Host Window Prevents Shutdown
As mentioned above, simply closing the program in question or shutting down anyway are both good options to proceed. But in some situations, specific internal processes could be interrupting either the shutdown or the restart process. If that’s the case, you’ll get a message that says “Task Host Window, Task Host is stopping background tasks.”
If task host is stopping background tasks, then you’ll probably have to do more than just closing a few programs here and there. For those unfamiliar, this particular message usually pops up when there is an update file ready and Windows is somehow preventing your computer from updating.
How to Fix Task Host Window?
Since task host window is not an error or a virus, there’s no need for fixing. Simply close the program or just click on “Shut Down Anyway.”
Task Host is Stopping Background Tasks
But if you’re getting the “Task Host Window, Task Host is stopping background tasks” message we previously mentioned, these are the methods and steps you need to take:
Method One – Launch Windows Update Troubleshooter
- Click on the Start button and then on the gear icon to open your PC’s settings page.
- Select the Updates and Security option and then click on the Troubleshoot button to open the Troubleshooters page.
- Scroll down and click on the Windows Update Troubleshooter to run it.
This should fix the problem, but if it doesn’t, proceed to the next step.
Method Two – Restart InstallService Service
- Open Windows Services Manager.
- Scroll down and right-click on InstallService and select “Restart.”
- Reboot your Windows PC.
If restarting InstallService service doesn’t work either, proceed to the next step.
Method Three – Turn Off Hybrid Shutdown/Fast Startup (Recommended)
Windows Hybrid Shutdown/Fast Startup is used to speed things up, however, this functionality may also be the culprit. You can turn off hybrid shutdown/fast startup like this:
- Press Win+R to open the Run window.
- Now type the command powercfg.cpl.
- Select “Choose what the power button does.”
- Click on “Change settings that are currently unavailable.”
- Deselect “Turn on fast startup.”
Some people get it wrong in step 3, Choose what the power button does, because sometimes they can’t seem to find the option which is located in the left pane. Keep this in mind as this is important to note because Method Three is one best ways to fix the problem.
Did turning off hybrid shutdown/fast startup fix the issue? If it didn’t, proceed to the fourth and probably final step.
Method Four – Reduce Shutdown Time
If none of the previous solutions fixed the problem and task host is still stopping background tasks, you may want to try this out:
- Press Win+R to open the Run window.
- Type regedit and press enter or click OK to open the registry editor.
- Now navigate to the following path: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control.
- In the right pane double click WaitToKillServiceTimeout and change the value to either 2000 or 5000.
- Now navigate to the following path: HKEY_CURRENT_USER/Control Panel/Desktop.
- Highlight desktop in the left pane and right click in the blank space in the right pane, then choose New > String Value, and name the String Value WaitToKillServiceTimeout.
- Now in the right pane, right-click WaitToKillServiceTimeout and edit the value to either 2000 or 5000 and press enter apply the change.
- Exit the registry editor and reboot your computer to check if the issue has been solved.
Although step 3 and step 4 may seem complicated, they’re not. Actually, according to several users, opening the registry editor and navigating to the user control panel desktop path to edit the WaitToKillServiceTimeout is the fastest and easiest way to fix the issue.
However, even though the problem may be the same for all users, not every user can apply the same procedures to fix this problem.
For some, just opening the the Run window, typing regedit, and pressing enter to launch the registry editor and navigating to certain paths such as machine system currentcontrolset control and HKEY current user control to change the WaitToKillServiceTimeout value simply won’t work. That’s why we’ve decided to share several solutions, because if one solution doesn’t work, you’ll have to choose another one that does.
Method Five – Modify Account Settings
If opening the registry editor and navigating to the local machine system currentcontrolset to change the WaitToKillServiceTimeout values doesn’t work either, try this solution instead:
- Press Windows + S and type “account” in the search bar.
- Click on “Manage your account.”
- In account settings, go to “Sign-in options” and turn off “Use my sign-in info to automatically finish setting up my device after an update or restart” by unchecking the option.
- Try to restart your Windows computer to see if the problem has been solved.
Users affected by the latest update will be glad to know that following these steps will likely fix your problem. However, if following these steps does not fix the issue move to Method 6.
Method Six – Run a Windows Defender Online Scan
If nothing seems to work, then you may have malware or viruses on your computer that are preventing Task Host from initiating shutdown. You can use Windows Defender, which is Microsoft’s default antivirus for Windows, to perform a scan and fix the issue:
- Press Windows + I to launch the run prompt dialog box.
- Select “Update and Security” and then click on the “Windows Security” option located in the left pane.
- Select “Virus and Threat Protection” settings and then click on the “Scan Options” button.
- Now select the “Windows Defender Offline Scan” option and click “Scan Now” to perform a system scan.
- Try to shut down your computer again.
Method Seven – Install Delayed Update
The Task Host Windows is Preventing Shutdown message sometimes pops up when a new update file has been downloaded to your computer but it can’t be installed. You can open and run the Windows Update Troubleshooter to fix the problem. Here’s what you need to do:
- Press and hold Windows + I at the same time to open the settings.
- Select the “Update and Security” option.
- Now select the “Troubleshoot” option in the left pane and click on “Windows Update.”
- Select the “Run Troubleshooter” option.
- Wait for the troubleshooter to automatically find the cause and then fix it.
- Once the update has been installed, check to see if the problem has been fixed.