Download Article
Get rid of the Task Host window on shutdown
Download Article
- Troubleshooting Task Host Window
- What is Windows Task Host?
- What is the Task Host error?
- Video
|
|
|
Are you seeing the Task Host window when trying to shut down your computer? This window may pop up for a brief second, and it may be alarming if you’re unsure what it is. Luckily, this is an official Windows program, so it isn’t a virus. If you’re annoyed by the pop-up while trying to shut off your PC, we’ll show you how to fix it. Here’s what to do about the Task Host window preventing shutdown on Windows 11 and Windows 10.
How to Stop Windows Task Host Error
If the Windows Task Host is preventing shutdown, it’s likely due to a recent update. However, you should scan your computer for viruses, run the Windows Troubleshooter, and run the System File Checker to rule out software issues. The Task Host window will only appear for a second and is usually harmless.
-
While the Windows Task Host isn’t a virus or malware, you’ll want to make sure you don’t have any other malicious programs on your device.
- You can use a third-party antivirus program, or you can run the built-in scanner in Windows Security.
-
This built-in tool helps you find errors on your device. It’ll show you recommended troubleshooting steps if it finds an issue.[1]
To launch the tool, do the following:- Click the Start menu and type «troubleshoot settings».
- Click Troubleshoot settings.
- Click Additional troubleshooters.
- Click an option and click Run the troubleshooter.
- Repeat for all options.
Advertisement
-
This option may be causing the Task Host window to appear when you’re trying to shut down your computer. To disable it, do the following:
- Click the Start menu and type «control panel».
- Click Control Panel.
- Click Power Options.
- Click Choose what the power buttons do in the left panel.
- Click Change settings that are currently unavailable at the top.
- Uncheck the box for Turn on fast startup.
- Restart your computer.
-
When you try to turn off your computer with apps running in the background, you’ll get a pop-up prompt from Windows notifying you. If you proceed, Windows will force-shutdown the apps. To prevent this window, make sure all apps are closed. You can check by doing the following:
- Right-click the taskbar.
- Click Task manager.
- Select an open program.
- Click End task.
-
If you don’t have any apps running in the background when you shut down Windows, you may have an update scheduled for later. To check any awaiting updates, do the following:
- Click the Start menu and type «check for updates».
- Click Check for updates.
- Click Check for updates again.
- If needed, click Change active hours to update at a different time, or Pause updates to update it manually on your own time.
-
This built-in command scans your computer for corrupted files. To use it, do the following:
- Open the Command Prompt as an administrator.
- Type sfc /scannow and press Enter.
- Type Dism /Online /Cleanup-Image /CheckHealth and press Enter.
- Type Dism /Online /Cleanup-Image /ScanHealth and press Enter.
- Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
- Restart your computer.
-
A clean boot starts Windows up with minimal drivers and programs. This helps you determine if another app is affecting your computer’s performance. This is only recommended if you’re familiar with advanced boot options.[2]
Do the following:- Make sure you’re on the administrator account.
- Click the Start menu and type msconfig.
- Click System Configuration.
- Click the Services tab.
- Check the box for Hide all Microsoft services.
- Click Disable all.
- Click Apply.
- Click the Startup tab and click Open Task Manager.
- Select a program that has the Enabled status.
- Click Disable.
- Close the Task Manager.
- In System Configuration, click OK.
- Restart your computer to look for errors.
- To enable it again, open System Configuration and select Normal Startup. Select the Services tab, uncheck the box for Hide all Microsoft services, click Enable all, and then click Apply. Enable all disabled programs in the Task Manager. Then, restart your computer.
-
The Task Host window error has appeared for most users after a certain Windows update. Since it’s not recommended to revert updates (as these contain important security fixes), you may need to wait for Microsoft to release a new update that fixes this issue.
- Windows 10 support will end in October 2025. If you want to continue receiving new updates, you’ll need to upgrade to Windows 11.
Advertisement
-
If you’re worried about viruses or malware, don’t worry. The Task Host itself is a built-in program. However, if you have other unknown programs popping up, be sure to run an antivirus scan to rule out any harmful applications.
-
This window may pop up for only a second before the computer shuts down, raising concerns from some users. However, the Task Host is a Windows program, so you shouldn’t be too worried about viruses. Many users reported seeing this error after installing a new update.
Advertisement
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Thanks for submitting a tip for review!
References
About This Article
Thanks to all authors for creating a page that has been read 3,151 times.
Is this article up to date?
Resolve Task Host Window Issues to Enable Smooth Shutdown
Published
5 min read
Task Host Window Preventing Shutdown: 6 Ways to Fix
When you’re trying to shut down your Windows computer and the task is disrupted by a message from the Task Host Window (Taskhostw.exe), it can be frustrating and perplexing. This problem usually indicates that there are background processes or applications that are preventing Windows from shutting down, often leading to delays and complications. In this article, we’ll explain what the Task Host Window is, why it might prevent shutdowns, and most importantly, provide six effective methods to resolve this issue.
Understanding Task Host Window
The Task Host Window is a legitimate Windows process that acts as a host for processes that run in the background. It’s responsible for handling application shutdowns and ensuring that processes complete their tasks before Windows closes down. Although necessary for the proper functioning of the operating system, it can sometimes inhibit shutdowns by presenting messages like «Task Host Window: Closing background tasks.»
This usually occurs when programs or updates are still running or haven’t properly completed their tasks, which can leave users feeling stuck with an unresponsive system. It’s essential to resolve this to regain full control over your device.
Why Does Task Host Prevent Shutdown?
There are various reasons the Task Host Window might prevent a smooth shutdown, including:
-
Pending Updates: Sometimes, Windows Update may be trying to install new updates, which can cause the system to hang during the shutdown process.
-
Running Applications: Open applications, especially those that are resource-intensive or have unsaved work, may not allow a proper shutdown.
-
Corrupted System Files: If system files are corrupted, it might lead to inconsistent behavior of Windows processes, including the Task Host Window.
-
Malware and Viruses: These malicious entities can interfere with normal process operations, including shutting down.
-
Third-Party Software: Applications that do not close properly or have unsaved changes can also hold up the shutdown process.
-
Power Settings: Sometimes improper power management settings can also lead to issues wherein the Task Host Window won’t let you shut down your machine seamlessly.
Now that we understand the issue, let’s explore six methods to fix the Task Host Window preventing shutdown problem.
Method 1: Ensure All Applications Are Closed
Before trying anything more advanced, a straightforward solution is simply to ensure all applications are closed.
-
Close Applications Manually: Before shutting down your PC, ensure you manually close each application. Look for any running processes in the System Tray and close them.
-
Check Task Manager: If some applications refuse to close or appear frozen, you can open the Task Manager (press Ctrl + Shift + Esc). In the «Processes» tab, select the application that’s causing issues and click «End Task.»
-
Restart the Computer: After closing all applications and processes, try shutting down again, as this ensures that nothing is blocking the process.
Method 2: Update Windows
Keeping your operating system updated is crucial for keeping conflicts to a minimum. Windows updates often include patches that resolve known issues, including those involving the Task Host Window.
-
Open Settings: Click on the Start menu and select «Settings» (the gear icon).
-
Go to Update & Security: In the Settings window, select «Update & Security.»
-
Check for Updates: Click on the “Check for updates” button. If there are pending updates, allow them to download and install.
-
Restart the Computer: After the updates are done installing, restart your machine and try shutting down again.
Method 3: Run System File Checker
Corrupted system files can have various adverse effects on your operating system, including preventing shutdowns. The System File Checker (SFC) is a built-in tool that scans and repairs corrupted system files.
-
Open Command Prompt as Administrator: Type
cmd
in the Windows search bar, right-click on «Command Prompt,» and select «Run as administrator.» -
Run the SFC Command: In the command prompt, type
sfc /scannow
and press Enter. This process may take some time. -
Wait for the Scan to Complete: Once the scan is finished, you’ll receive a message about whether any integrity violations were found and if they were fixed.
-
Restart Your Computer: After the SFC command has completed its process, restart your machine and check if the issue still occurs.
Method 4: Check for Pending Updates Manually
Sometimes, updates can get stuck in the queue. If Windows is trying to install updates during shutdown, it can halt the process.
-
Open Windows Update: Go to «Settings» > “Update & Security”.
-
View Update History: Select “View update history” to see if there are any pending updates that have not installed correctly.
-
Troubleshoot Windows Updates: Run the Windows Update troubleshooter by going to «Settings» > «Update & Security» > «Troubleshoot» > «Additional troubleshooters,» and then select «Windows Update.»
-
Follow the Prompts: Allow the tool to run, and then try shutting down your computer again.
Method 5: Disable Fast Startup
Fast Startup is a feature designed to help your system boot up faster, but it sometimes creates complications during shutdowns.
-
Open Control Panel: Type «Control Panel» in the search bar and open it.
-
Choose Power Options: Click on «System and Security» and then select «Power Options.»
-
Select Choose What the Power Buttons Do: On the left sidebar, click on «Choose what the power buttons do.»
-
Modify Settings: Click on «Change settings that are currently unavailable.» Scroll down to the «Shutdown settings» section and uncheck «Turn on fast startup.»
-
Save Changes: Click “Save changes” and then restart your computer to see if the issue is resolved.
Method 6: Use the Windows Troubleshooter
As a last resort, using the built-in troubleshooter can help identify and fix problems with your system and applications.
-
Open Troubleshoot Settings: In «Settings,» go to «Update & Security» and click on «Troubleshoot.»
-
Run Troubleshooters: Scroll down to find the «Additional troubleshooters» and check for troubles related to «System Maintenance» or «Windows Update.»
-
Follow On-Screen Instructions: Run the troubleshooters, follow the prompts, and see if that resolves the issue.
-
Attempt Shutdown: After running the troubleshooters, try to shut down your PC again.
Conclusion
In summary, the Task Host Window can effectively prevent shutdowns for various reasons, but there are multiple strategies available to address this issue. By ensuring that all applications are closed and updating your operating system regularly, alongside running system maintenance tools such as SFC and Troubleshooter, you can maintain optimal functionality for your Windows device.
Balancing your system’s updates and managing its resources efficiently will go a long way in mitigating potential shutdown interruptions. Should all else fail, consider seeking professional support, as deeper issues may exist within your hardware or software.
With these six methods at your disposal, you should be well-equipped to tackle any instances of the Task Host Window preventing shutdowns, ensuring smoother and more reliable performance from your machine.
-
Home
-
News
- How to Fix Task Host Window Prevents Shut Down on Windows 10
By Daisy | Follow |
Last Updated
If you have recently upgraded to Windows 10 or updated your Windows then you may face a problem when you try to shut down your PC, and you will receive an error message saying “Task Host is stopping background tasks”. Read this post from MiniTool to fix the “Task Host window prevents shutdown” issue.
Task Host Window
Task Host is a Windows program, not a virus or malware. You don’t need to worry that your system will be damaged by it. Task Host makes sure that programs previously running were closed properly to avoid data and program corruption when you shut down your system.
I strongly recommend you close all running programs before you shut down or reboot your computer. However, if you feel that no programs were running prior to you shutting down, then you can follow the steps below to fix the Task Host window prevents shut down” issue.
How to Fix Task Host Window Prevents Shut Down
Solution 1: Turn Off Fast Startup
Hybrid Shutdown and the Fast Startup feature designed to speed up Windows can cause Task Host stopping background tasks. Thus, you need to turn off fast startup. Here is how to do this.
Step 1: Press the Windows key and R key at the same time to open the Run dialog, type powercfg.cpl and click OK.
Step 2: Click Choose what the power button does from the left pane
Step 3: Then choose Change settings that are currently unavailable. When the User Account Control warning appears, you should click Yes.
Step 4: Uncheck Turn on fast startup (recommended) and click the Save changes button.
Now restart your system and check if the “Task Host window is preventing shutdown” issue is resolved. If not, you can try the second solution.
Solution 2: Use Registry Editor to Edit WaitToKillServiceTimeout
The second solution is to edit WaitToKillServiceTimeout using Registry Editor. Here are the steps.
Step 1: Press the Windows key and R key to open the Run box. Type regedit and click OK to open Registry Editor.
Step 2: Then navigate to the following path:
Computer ->HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control
Step 3: Click WaitToKillServiceTimeout and change value to 2000, then click OK.
Step 4: Now navigate to the following path:
Computer ->HKEY_CURRENT_USER -> Control Panel -> Desktop
Step 5: Right-click the blank space in the right pane and choose New > String Value. Name the String Value WaitToKillServiceTimeout.
Step 6: Now Right-click WaitToKillServiceTimeout and click Modify. Type 2000 under Value data and click OK.
Now reboot your computer and see if the issue is resolved or not, if not then proceed to the next solution.
Solution 3: Run the Windows Update Troubleshooter
When an update file has been downloaded on the computer but can’t be installed, the “Task Host window Prevents Shutdown” error will appear. You need to run the Windows Update Troubleshooter to fix the issue.
Step 1: Press the Windows + I keys at the same time to open the Settings tool.
Step 2: Click the Update & Security option.
Step 3: Then click Troubleshoot and select Windows Update from the list.
Step 4: Click the Run the troubleshooter option.
The troubleshooter will detect the problem automatically and solve it. You just need to wait for the update to be installed and check to see if the issue persists.
Final Words
You can try the solutions mentioned above one by one to fix the “Task Host window prevents shut down on Windows” issue. One of them can help you a lot!
About The Author
Position: Columnist
Having been an editor at MiniTool since graduating college as an English major, Daisy specializes in writing about data backups, disk cloning, and file syncing as well as general computer knowledge and issues. In her free time, Daisy enjoys running and going with friends to the amusement park.
Содержание статьи:
- Рекомендации по устранению
- Первое
- Второе
- Третье
- Четвертое (общие рекомендации)
- Вопросы и ответы: 0
Здравия!
Вероятно вы наткнулись на эту заметку из-за сообщения на экране про какой-то там «Task Host Windows»*, который мешает выкл. компьютер?! (см. пример на рис. ниже)
* Для начала отвечу о том, что это вообще такое «Task Host Windows»?
Это системное приложение Windows, отвечающее за работу с DLL библиотеками других программ. Работает оно постоянно, и если есть какое-то задание (даже отложенное, фоновое) — то при выкл. компьютера можно увидеть как раз это предупреждение о работе «Task Host Windows»… 👇
Т.е. в подавляющем большинстве случаев причина в появл. окна — какое-нибудь стороннее ПО, которое в данный момент работает (некоторые игры, редакторы, оптимизаторы, не сохраненные документы, и т.п.)
Ниже рассмотрим неск. рекомендаций, как его убрать (и что вообще можно сделать…). 😉👌
Task Host Windows. Закрытие одного приложения и перезагрузка — Чтобы вернуться и сохранить данные нажмите отмену. Сервер задач останавливает фоновые задачи // в качестве примера
*
Рекомендации по устранению
Первое
При появлении подобного окна (как на рис. ниже/выше) — обратите внимание на описание. Как правило, всегда указывается либо само «проблемное» приложение (например, Word или Блокнот 👇), либо фоновый процесс, который мешает завершить задачу.
Если данные из этого указанного приложения вам не нужны* — то можно просто-напросто нажать на кнопку «Все равно перезагрузить / выкл.» (как в примере ниже👇), и на этом вопрос должен быть решен…
*Разумеется, если данные из приложения нужны — необходимо отменить выключение ПК и предварительно всё сохранить на диск…
Проблема с блокнотом. Закрытие 1 приложения и перезагрузка… (еще один пример).
*
Второе
Если приложение из описания не очевидно (и вы не знаете из-за чего появляется окно с «Task Host Windows») — можно попробовать его узнать через 📌диспетчер задач (нажмите Ctrl+Alt+Del для его вызова).
Далее нужно открыть вкладку «Сведения» (либо «Подробности», зависит от версии Windows), найти процесс «taskhostw.exe», нажать по нему правой кнопкой мыши и перейти во вкладку «Анализ цепочки ожидания».
Анализ цепочки ожидания — Диспетчер задач Windows 11
Затем должно появиться окно с деревом процессов и приложений, которые вызывают «проблему»… 👇👌
Здесь может быть указан процесс, программа, которые вызвали проблему…
*
Третье
Есть ряд параметров, которые могут приводить к рассматриваемой проблеме — и на время диагностики я бы порекомендовал вам попробовать их откл.:
- быстрый запуск: чтобы его откл. — необходимо открыть настройки электропитания (Win+R, и команда powercfg.cpl), затем перейти в «Действие кнопки питания» и снять галочку напротив пункта «Вкл. быстрый запуск» 👇👇(Перезагрузить ПК);
Действие кнопок питания
Откл. быстрый запуск — настройки электропитания Windows
- в параметрах Windows 10 (11) во вкладке «Учетные записи \ варианты входа» можно откл. использование данных для входа при заверш. настройки после перезапуска и обновлений (рекомендуется передвинуть ползунок в режим «Выкл.»);
Учетные записи — варианты входа — исп. мои данные — Windows 11
- также рекомендуется пройтись в «Планировщике задач» (Win+R, команда control schedtasks) по всем задачам, и поискать, какие из них работают в текущий момент + какие поставлены на активацию при выкл. компьютера. Затем всё незнакомое и ненужное откл.! Примечание: для откл. задачи — нажмите по ней ПКМ и выберите опцию «Откл.», чтобы у нее поменялось состояние (см. скрин ниже стрелка-1).
Отключаем регулярный запуск всего ненужного — планировщик заданий Windows
*
Четвертое (общие рекомендации)
- во-первых, стоило бы проверить свой компьютер антивирусом (это можно быстро сделать с помощью 📌онлайн-сканеров, которые не нужно устанавливать);
Работа сканера ESET’s Free Online Scanner
- во-вторых, не лишним было бы проверить обновления (при наличии оных — обновить Windows. 📌В помощь: как обновить Windows до посл. версии);
Центр обновления в Windows 11
- в-третьих, стоит проверить (и восстановить при необходимости) системные файлы в Windows. Как это сделать с помощью SFC, Chkdsk и DISM 📌показывал в этой заметке;
- в-четвертых, если все остальное не помогло — можно попробовать посмотреть 📌точки восстановления. Если среди них есть точка с датой создания при которой все работало штатно — можно попробовать 📌откатить систему к ней.
*
Дополнения и иные решения — приветствуются в комментариях (См. форму для комментирования ниже).
Всем удачи!
👋