Сервер задач останавливает фоновые задачи microsoft windows

The ‘task host is stopping background tasks’ error appears when you try to shut down your computer. It prevents your system from shutting down even if you try to ‘force shut down.’ Forcing shutdowns is generally not a good idea but if it takes a long time, you may long press the power button as a last resort.

Waiting for a while usually fixes it, but If it doesn’t, you can follow through with us in this article to know what causes it and how to fix it.

Why is Task Host Stopping Background Tasks?

This issue pops up because there’s probably a Windows update or another service installing in the background which is holding off the shutdown process. It usually stays up for some time and automatically shuts off after the process ends. However, if it’s not, you can try the methods below and fix the issue. 

How to Fix Task Host Preventing Shutdown?

These types of errors usually stay up for 30- 60 seconds and resolve by themselves. However, if it is holding the shutdown process for a fairly long time, the installation process might be encountering issues. Here are some possible fixes you can try from:

Check Windows Update

Since Windows is trying to install updates and preventing your PC from shutting down, you might want to wait until it’s done. You can check the progress of the Update in windows update settings.

The steps below will guide you on how to check the progress. 

  1. Press the Windows key + I to open settings.
  2. Click on Updates & Security.
  3. Select Windows update on the left pane.
  4. Click on Check for updates.
    check-for-updates-1

    This will show you the current state of the update process.

You can also check the update history by clicking on the ‘View update history.’ Pausing the update is also a good solution to pause the windows update temporarily. Just click on ‘Pause updates for 7 days.’ It will even pause any ongoing update process.

Restart InstallService Service

The Installservice is a windows service that deals with installing windows system programs. You can try restarting this service. Here’s how you do it:

  1. Right-click on the taskbar and click on the task manager.
  2. Go to the Services tab.
  3. Look for ‘Installservice.’ Sort by name and navigate to “I” for easier findings.
  4. Right-click on the service and click Restart.
    install-service-restart

Perform a Clean Boot

A clean boot excludes all services except for verified Microsoft services. Third-party services may conflict with the basic Microsoft services, which causes issues. You can learn how to do a clean boot here:

  1. Press Windows + R, type msconfig in the box, and press Enter.
  2. Go to the Services tab.
  3. Tick the box labeled ‘Hide all Microsoft services.’
  4. Click Disable all and press Ok.
    clean-boot

  5. It will then ask you to restart your computer. You need to force restart your computer to apply the changes. You can either restart now or click Exit without Restart to apply the changes next time you boot your computer.

Note: Do remember to revert all the changes later.

Scan for Corrupt Files

You can use the sfc /scannow command in the command prompt to scan your system for corrupt files. This command will automatically scan for corrupt files and fix them for you.

  1. Search for cmd on the search bar and Run as administrator.
  2. Type the following command and press Enter after each command:
    • sfc/scannow
    • DISM /Online /Cleanup-Image /Restore Health
      running-dism-and-sfc-command

Disable Fast Startup

The fast startup is a Windows feature that makes the computer load faster when starting. When Windows fast startup is enabled, windows goes into a hybrid of shutting down and hibernating when you press the shutdown button. Also, the next time you turn it on, it just resumes the session. You can disable this mode in the power options.

Here’re the steps:

  1. Go to power options by right-clicking on the battery icon in the taskbar.
  2. Click on Choose what the power button does in the left panel.
  3. Click on Change settings that are currently unavailable. It might ask you to input your administrator password.
  4. Untick the Turn on fast startup (recommended) to disable the fast startup.
    disable-fast-startup-1

Perform Defender Offline Scan

The defender offline scan is a deep scan that executes when restarting. This will even remove difficult malware that cannot be detected otherwise.

Here’re the steps:

  1. Press Windows key + I to open settings.
  2. Click on Update & Security.
  3. Select Windows security on the left pane.
  4. Click on Virus & Threat protection
    virus-and-threat-protection-2

  5. Click on Scan options.
  6. Scroll down and select choose Microsoft defender offline scan
  7. Click on Scan now. It will restart your computer and start the scan after the restart.
    microsoft-defender-offline-scan-scan-now

Windows Update Troubleshooting

You can use the built-in Windows troubleshooter to troubleshoot any issues in updating. The program will automatically search and fix any issues found. Follow these steps to learn how to do it.

  1. Press the Windows key + I
  2. Select Updates and Security.
  3. Click on Troubleshoot.
  4. Click on Additional troubleshooters.
    Additional-troubleshooter

  5. Expand Windows Update and click on Run the troubleshooter. This will automatically check for faults and fix them for you.

Registry Editing

We highly recommend backing up the registry before making any changes to it(LINK). The registry is an important part of the computer, so if you want to change it back, then the backup will come in handy. You will be fine if you just follow these steps.

  1. Press Windows key + R to open Run.
  2. Type regedit, and press Enter.
  3. Follow through to this root in the registry editor:
    HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Control
  4. Right-Click on the WaitToKillServicesTimeout and set the value data to 3000 and click OK.
    waittokillservice-change-value-data

  5. Then again, go to this root:
    HKEY_CURRENT_USER/Control Panel/Desktop
  6. Right-click on the WaitToKillServiceTimeout again and set the value to 3000 and click OK.

This changes the time the system waits to force kill the service. Setting the value very low is not a great idea because the service won’t have enough time to save its work, and the abrupt shutdowns could also cause data corruption.

Содержание статьи:

  • Рекомендации по устранению
    • Первое
    • Второе
    • Третье
    • Четвертое (общие рекомендации)
  • Вопросы и ответы: 0

Здравия!

Вероятно вы наткнулись на эту заметку из-за сообщения на экране про какой-то там «Task Host Windows»*, который мешает выкл. компьютер?! (см. пример на рис. ниже)

* Для начала отвечу о том, что это вообще такое «Task Host Windows»?

Это системное приложение Windows, отвечающее за работу с DLL библиотеками других программ. Работает оно постоянно, и если есть какое-то задание (даже отложенное, фоновое) — то при выкл. компьютера можно увидеть как раз это предупреждение о работе «Task Host Windows»… 👇

Т.е. в подавляющем большинстве случаев причина в появл. окна — какое-нибудь стороннее ПО, которое в данный момент работает (некоторые игры, редакторы, оптимизаторы, не сохраненные документы, и т.п.)

Ниже рассмотрим неск. рекомендаций, как его убрать (и что вообще можно сделать…). 😉👌

img-Task-Host-Windows.-Zakryitie-odnogo-prilozheniya-i-perezagruzka-CHtobyi-vernutsya-i-sohranit-dannyie-nazhmite-otmenu.png

Task Host Windows. Закрытие одного приложения и перезагрузка — Чтобы вернуться и сохранить данные нажмите отмену. Сервер задач останавливает фоновые задачи // в качестве примера

*

Рекомендации по устранению

Первое

При появлении подобного окна (как на рис. ниже/выше) — обратите внимание на описание. Как правило, всегда указывается либо само «проблемное» приложение (например, Word или Блокнот 👇), либо фоновый процесс, который мешает завершить задачу.

Если данные из этого указанного приложения вам не нужны* — то можно просто-напросто нажать на кнопку «Все равно перезагрузить / выкл.» (как в примере ниже👇), и на этом вопрос должен быть решен…

*Разумеется, если данные из приложения нужны — необходимо отменить выключение ПК и предварительно всё сохранить на диск…

img-Zakryitie-odnogo-prilozheniya-i-perezagruzka-CHtobyi-vernutsya-i-sohranit-dannyie-nazhmite-otmenu.png

Проблема с блокнотом. Закрытие 1 приложения и перезагрузка… (еще один пример).

*

Второе

Если приложение из описания не очевидно (и вы не знаете из-за чего появляется окно с «Task Host Windows») — можно попробовать его узнать через 📌диспетчер задач (нажмите Ctrl+Alt+Del для его вызова).

Далее нужно открыть вкладку «Сведения» (либо «Подробности», зависит от версии Windows), найти процесс «taskhostw.exe», нажать по нему правой кнопкой мыши и перейти во вкладку «Анализ цепочки ожидания».

img-Analiz-tsepochki-ozhidaniya-Dispetcher-zadach-Windows-11.png

Анализ цепочки ожидания — Диспетчер задач Windows 11

Затем должно появиться окно с деревом процессов и приложений, которые вызывают «проблему»… 👇👌

img-Zdes-mozhet-byit-ukazan-protsess-programma-kotoryie-vyizvali-problemu....png

Здесь может быть указан процесс, программа, которые вызвали проблему…

*

Третье

Есть ряд параметров, которые могут приводить к рассматриваемой проблеме — и на время диагностики я бы порекомендовал вам попробовать их откл.:

  1. быстрый запуск: чтобы его откл. — необходимо открыть настройки электропитания (Win+R, и команда powercfg.cpl), затем перейти в «Действие кнопки питания» и снять галочку напротив пункта «Вкл. быстрый запуск» 👇👇(Перезагрузить ПК);

    img-Deystvie-knopok-pitaniya.png

    Действие кнопок питания

    img-Otkl.-byistryiy-zapusk-nastroyki-elektropitaniya-Windows.png

    Откл. быстрый запуск — настройки электропитания Windows

  2. в параметрах Windows 10 (11) во вкладке «Учетные записи \ варианты входа» можно откл. использование данных для входа при заверш. настройки после перезапуска и обновлений (рекомендуется передвинуть ползунок в режим «Выкл.»);

    img-Uchetnyie-zapisi-variantyi-vhoda-isp.-moi-dannyie-Windows-11.png

    Учетные записи — варианты входа — исп. мои данные — Windows 11

  3. также рекомендуется пройтись в «Планировщике задач» (Win+R, команда control schedtasks) по всем задачам, и поискать, какие из них работают в текущий момент + какие поставлены на активацию при выкл. компьютера. Затем всё незнакомое и ненужное откл.! Примечание: для откл. задачи — нажмите по ней ПКМ и выберите опцию «Откл.», чтобы у нее поменялось состояние (см. скрин ниже стрелка-1).

    img-Otklyuchaem-regulyarnyiy-zapusk-vsego-nenuzhnogo-planirovshhik-zadaniy-Windows.png

    Отключаем регулярный запуск всего ненужного — планировщик заданий Windows

*

Четвертое (общие рекомендации)

  1. во-первых, стоило бы проверить свой компьютер антивирусом (это можно быстро сделать с помощью 📌онлайн-сканеров, которые не нужно устанавливать);

    Работа сканера ESET’s Free Online Scanner

    Работа сканера ESET’s Free Online Scanner

  2. во-вторых, не лишним было бы проверить обновления (при наличии оных — обновить Windows. 📌В помощь: как обновить Windows до посл. версии);

    Центр обновления в Windows 11

    Центр обновления в Windows 11

  3. в-третьих, стоит проверить (и восстановить при необходимости) системные файлы в Windows. Как это сделать с помощью SFC, Chkdsk и DISM 📌показывал в этой заметке;
  4. в-четвертых, если все остальное не помогло — можно попробовать посмотреть 📌точки восстановления. Если среди них есть точка с датой создания при которой все работало штатно — можно попробовать 📌откатить систему к ней.

*

Дополнения и иные решения — приветствуются в комментариях (См. форму для комментирования ниже).

Всем удачи!

👋

30.09.2017, 10:07. Показов 7019. Ответов 1

Здравствуйте друзья! Буквально вчера появилась проблема при выключении ПК. Не могу отключить, пока не отмечу «Отключить всё равно». Такое вот на экране:
Сервер задач останавливает фоновые задачи (\microsoft\windows\devicedirectoryclien t\registeruserdevice)
Началось всё после внезапного падения гаджета HTC Weather и сообщением —

ошибка clr 80070005 работа программы будет прекращена

. Решил перезагрузить систему, тщетно — удалил и заново устанавливал виджет, не помогало — ошибка clr 80070005 постоянно маячила. При этом отключить ПК так же не получалось, не нажав: «Отключить всё равно»
Искал решение, нашёл следующее:
Загрузил утилиту subinacl.exe. Далее прописал в блокноте:
@echo off

Set OSBIT=32
IF exist «%ProgramFiles(x86)%» set OSBIT=64
set RUNNINGDIR=%ProgramFiles%
IF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)%
C:\subinacl\subinacl.exe /subkeyreg «HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\W indows\CurrentVersion\Component Based Servicing» /grant=»nt service\trustedinstaller»=f

@Echo Gotovo.
@pause

Запустил от имени админа — не помогло. Добавил HTC Weather в исключения ДР Веб (хотя до этого они вместе работали больше года), виджет установился, но проблема с отключением ПК не решена.
Буду рад помощи, т.к абсолютно ничего до этого не устанавливал и не мог как то повлиять на систему, я так думаю.

  • 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.

turn off fast startup

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

navigate to the path

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.

click the Update and 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 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Download english interface for windows 10
  • Ноутбук не уходит в сон при закрытии крышки windows 11
  • Как улучшить скорость интернета на компьютере windows 10
  • Как работать в двух окнах одновременно windows 10
  • Как принудительно свернуть игру windows 10