Task Host Window Preventing Shutdown: 7 Methods to Fix It

Check out what worked for other users

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

fix task host window preventing shutdown in Windows

Some of our readers reported that the Task Host window is preventing a shutdown along with a Shut down anyway option. While clicking on it helped some, others again got the error on their subsequent attempts at performing a shutdown.

The Task Host window is not a virus, as often understood by many. This error is usually caused by a stuck OS update, or when a program is installing in the background. Certain running services and corrupt system files may also preventing a shut down.

Before we go to the slightly complex solutions, click the Shut down anyway button on the error prompt and check whether it appears again. For some, it was a one-off thing.

1. Run the Windows Update troubleshooter

  1. Press Windows + I to open Settings, and then choose Troubleshoot from the right in the System tab.troubleshoot
  2. Click on Other troubleshooters.other troubleshooters
  3. Now, click on Run next to the Windows Update entry to launch the troubleshooter.troubleshooter to fix task host window preventing shutdown
  4. Follow the on-screen instructions to identify and eliminate the problem.troubleshooter

In most cases, it was an issue with Windows Update that led to the Task Host window preventing shutdown. And the built-in troubleshooter did wonders by fixing things in no time.

2. Restart the Microsoft Store Install Service

  1. Press Windows + R to open Run, type services.msc in the text field, and hit Enter.services
  2. Locate the Microsoft Store Install Service, right-click on it, and then choose Restart.restart to fix task host window preventing shutdown
  3. Wait for the service to restart.restarting

The Task Host window preventing shutdown mistaken for a virus can also be due to issues with the Microsoft Store Install Service, and restarting it should get things up and running.

3. Disable startup apps and non-critical services

  1. Press Windows + R to open Run, type msconfig, and click OK.msconfig
  2. Head to the Services tab, tick the checkbox for Hide all Microsoft services, and then click on Disable all button.disable services
  3. Now, press Ctrl + Shift + Esc to open the Task Manager and go to the Startup apps tab.startup apps
  4. Select the apps that read Enabled under the Status column individually, and click on Disable at the top. Do it for all such apps.disable to fix task host window preventing shutdown

Once done, restart the computer, and verify whether the Task Host window is still preventing shutdown. In case it is, head to the next solution.

4. Run the DISM and SFC scan

  1. Press Windows + R to open Run, type cmd, and hit Ctrl + Shift + Enter.cmd
  2. Click Yes in the UAC prompt.
  3. Paste the following three commands one at a time, and hit Enter after each:DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealthdism to fix task host window preventing shutdown
  4. Once done, execute the following command to run the SFC scan:sfc /scannowsfc scan to fix task host window preventing shutdown

In a few cases, users got the Task Host window preventing shutdown due to corrupt system files, and running the DISM tool and the SFC scan got things working. These two shouldn’t take more than half an hour to run under ideal conditions.

Another option for easily erasing corrupt files would be a dedicated repair tool. They have massive databases with healthy system files with which they can replace all malfunctioning files found on your PC.

5. Uninstall Windows updates

  1. Press Windows + I to open Settings, go to Windows Update from the navigation pane, and click on Update history.update history
  2. Scroll down to the bottom and click on Uninstall updates.uninstall updates to fix task host window preventing shutdown
  3. Now, click on Uninstall next to the update that was installed right before the error first appeared.uninstall to fix task host window preventing shutdown
  4. Again, click Uninstall in the confirmation prompt.confirm
  5. If the error persists, uninstall another recent update, and check again.

Many users who reported that the Task Host window is preventing shutdown fixed things by uninstalling a few problematic updates. For most, it was the last two, but it might be different for others.

6. Turn off Fast Startup

  1. Press Windows + S to open the Search menu, type Control Panel, and then click on the relevant search result.control panel
  2. Click on System and Security here.system and security to fix task host window preventing shutdown
  3. Now, choose Change what the power buttons do under Power Options.change what the power buttons do
  4. Click on Change settings that are currently unavailable.change settings that are currently unavailable
  5. Now, uncheck the box for Turn on fast startup (recommended) and click on Save changes.disable to fix task host window preventing shutdown
  6. Once done, restart the computer, and the error shouldn’t appear again.

7. Install the optional updates

  1. Press Windows + I to open the Settings app, navigate to Windows Update, and click on Advanced options.advanced options
  2. Now, click on Optional updates.optional updates
  3. Tick the checkboxes for all the available updates here, and click on Download & install.optional updates to fix task host window preventing shutdown

That’s it! If nothing has worked so far, installing the optional updates should fix things in case the Task Host window is preventing shutdown.

We also have a new guide on Error Fail Shutdown, so don’t miss it for more information.

For any queries or to share a solution that’s not listed here, drop a comment below.

More about the topics: issues, Shutdown issues, windows 10

User forum

0 messages