How to repair windows update service

Windows Update — additional resources

Applies to:

  • Windows 10
  • Windows Server 2016
  • Windows Server 2019

Windows Server 2016 supports policies available in Windows 10, version 1607. Windows Server 2019 supports policies available in Windows 10, version 1809.

The following resources provide additional information about using Windows Update.

WSUS Troubleshooting

How do I reset Windows Update components?

  • Try using the Windows Update Troubleshooter, which will analyze the situation and reset any components that need it.
  • Try the steps in Troubleshoot problems updating Windows 10.
  • Try the steps in Fix Windows Update errors.

If all else fails, try resetting the Windows Update Agent by running these commands from an elevated command prompt:

Reset Windows Update components manually

Open a Windows command prompt. To open a command prompt, click Start > Run. Copy and paste (or type) the following command and then press ENTER:

Stop the BITS service, the Windows Update service and the Cryptographic service. To do this, type the following commands at a command prompt. Press ENTER after you type each command.

Delete the qmgr*.dat files. To do this, type the following command at a command prompt, and then press ENTER:

If this is your first attempt at resolving your Windows Update issues by using the steps in this article, go to step 5 without carrying out the steps in step 4. The steps in step 4 should only be performed at this point in the troubleshooting if you cannot resolve your Windows Update issues after following all steps but step 4. The steps in step 4 are also performed by the «Aggressive» mode of the Fix it Solution above.

  1. Rename the following folders to *.BAK:

To do this, type the following commands at a command prompt. Press ENTER after you type each command.

  1. Reset the BITS service and the Windows Update service to the default security descriptor. To do this, type the following commands at a command prompt. Press ENTER after you type each command.

Type the following command at a command prompt, and then press ENTER:

Reregister the BITS files and the Windows Update files. To do this, type the following commands at a command prompt. Press ENTER after you type each command.

Reset Winsock. To do this, type the following command at a command prompt, and then press ENTER:

If you are running Windows XP or Windows Server 2003, you have to set the proxy settings. To do this, type the following command at a command prompt, and then press ENTER:

Restart the BITS service, the Windows Update service and the Cryptographic service. To do this, type the following commands at a command prompt. Press ENTER after you type each command.

If you are running Windows Vista or Windows Server 2008, clear the BITS queue. To do this, type the following command at a command prompt, and then press ENTER:

how to repair window update component and service registry

how to repair window update component and service registry?

Original Title: updates

Replies (2) 

Why do you think it needs to be repaired? What is the exact text of the message being displayed?

Please provide more information so that the cause of your problem may be diagnosed.

Please restart your computer and allow 20 minutes for the system to run before uploading information required to help me investigate your problem. When examining Event Viewer log files many, not all, problems show in the period immediately after the computer has been booted.

Please provide a copy of your System Information file. To access your System Information file select the keyboard shortcut Win+R , type msinfo32 and click OK . Place the cursor on System Summary . Select File, Export and give the file a name noting where it is located. Click Save . Do not place the cursor within the body of the report before exporting the file. The system creates a new System Information file each time system information is accessed. You need to allow a minute or two for the file to be fully populated before exporting a copy. Please upload the file to your OneDrive, share with everyone and post a link here. If the report is in a language other than English, please state the language.

Читайте также:  После установки linux grub не видит windows

Please upload to your OneDrive and share with everyone a copy of your System log file from your Event Viewer and post a link here. Please remove any earlier copies of the logs from your OneDrive.

FIX: Windows Update service missing (not listed) in services.

On some Windows 8, 7 or Vista computers the Windows Update service may be missing from services (services.msc) due to a virus attack. When this happens the following error appears on your screen when you try to check for updates : «Windows update cannot currently check for updates, because the service is not running. You may need to restart your computer’.

This tutorial contains detailed instructions on how to restore Windows Update service in it’s original state.

How to solve the Windows Update service missing problem.

Important: In order to fix the Windows Update Service missing problem, first make sure that your computer is clean from viruses or other malicious programs. If you don’t know how to do that, then follow the steps in this guide: How To Scan Your Computer for Viruses & Other Malicious Programs

Method 1. Run the Windows Update Troubleshooter. *

1. Navigate to Windows Control Panel, set the ‘View By’ to Small icons and open Troubleshooting.

2. In Troubleshooting options, click View all.

3. Open the Windows Update.

4. Click Next to troubleshoot Windows update problems.

5. When the troubleshooting process is complete, close the troubleshooter and restart your PC.
6. Check for updates. *

* Note : If you ‘re using Windows Vista, run this tool also: BITS Repair Tool for Vista.

Method 2: Use Microsoft FixIt 50202 to repair Windows Update service. *

* Notes:
1. Because this method no longer works, move on to the next method.
2. This method applies only to Windows 7 OS.

1. Download & save MicrosoftFixit50202 tool on your computer.
2. Run the MicrosoftFixit50202 tool.
3. Accept the license agreement and then press Next.

4. Follow the instructions on screen.

Method 3. Restore invalid/missing registry keys from a working system.

Requirement: Another working computer with the same Windows Edition.

On the working computer, perform the following actions:

1. Open Registry Editor: To do that:

  • Simultaneously press “Windows” + “R” keys to open the RUN window.
  • In “RUN” window “Open” box, type: regedit
  • Press Enter

2. At the left pane, press the “+” sign and navigate to this subfolder:

3. Right-click on BITS subfolder and select Export.

4. Give a name for the exported file (e.g. ‘BITS‘) and save it to the desktop.

5. Then navigate to this subfolder:

6. Right-click on wuauserv subfolder and select Export.

7. Give a name for the exported file (e.g. ‘wuauserv‘) and save it to the desktop.

8. Close registry editor

9. Copy the exported registry files to a USB flash drive.

On the computer that Windows Update service or BITS Service is missing (not listed).

1. Plug the USB flash drive with the exported reg files to an empty USB port.

2. Double click at the exported BITS registry file (e.g. «BITS.reg) and allow to add its information to registry. *

3. Double click at the exported wuauserv registry file (e.g.»wuauserv‘.reg «) and allow to add its information to registry. *

* Note: If you have problems during import, then start Windows in Safe Mode and then import the key(s).

4. Restart the computer.

5. Check if Windows Update is working.

Method 4. Download & Import the Required Registration files.

If you don’t own another working computer, to get the required registration files, then you can download them from the links below (according your OS) and then to import them to the registry. To accomplish this task:

Step-1. Download the Registration files.

Windows 7

Windows 8

Windows 10

Step-2. Import the Registration Files

1. Open Registry Editor: To do that:

  • Simultaneously press “Windows” + “R” keys to open the RUN window.
  • In “RUN” window “Open” box, type: regedit
  • Press Enter

2. From main menu choose File > Import
3. Select the BITSWin.reg file and click Open. (If the import is successful, then click OK to the dialog box that appears. *
4. By using File > Import again, open the WindowsUpdateWin.reg file.

Читайте также:  Как сделать восстановление системы windows через командную строку

* Note: If the import is unsuccessful, then boot Windows in Safe mode and then import the registration files.

5. Restart your computer.

Step-3. Start the Windows Update & BITS service.

1. After restart, navigate to Services panel. To do that:

  • Simultaneously press “Windows” + “R” keys to open the RUN window.
  • In “RUN” window “Open” box, type: services.msc
  • Press Enter

2. Right click at BITS service select Properties.
3. Ensure that the Startup type is set to «Automatic (Delayed Start)» and press the Start button to start the service (if it is not started). Click OK.
4. Then right click at Windows Update service and choose Properties.
5. Ensure that the Startup type is set to «Automatic (Delayed Start)» and press the Start button to start the service (if it is not started). Click OK.
6. Try to check for updates again.

That’s all folks! Did it work for you?
Please leave a comment in the comment section below or even better: like and share this blog post in the social networks to help spread the word about this solution.

Сброс настроек службы обновлений Windows Update

В этой статье мы покажем, как исправить ошибки и восстановить работу службы обновления Windows с помощью сброса конфигурации агента и службы Windows Update. Как правило, это самый эффективный и простой способ решить проблему с работой службы обновлений Windows, если обновления не загружаются или происходят ошибки при установке обновлений.

Обычно для отладки и дебага ошибок службы обновления Windows администратору необходимо проанализировать коды ошибок в файле журнала обновлений %windir%\WindowsUpdate.log (в Windows 10 получить файл WindowsUpdate.log можно таким способом). Количество возможных ошибок, с которыми может столкнуться администратор при анализе журнала обновлений исчисляется десятками (список всех ошибок Windows Update) и процесс их разрешения в основном нетривиальный. В некоторых случаях вместо детального анализа ошибок Windows Update гораздо быстрее и проще сначала произвести полный сброс настроек агента и службы Windows Update. После сброса Windows Update вы можете выполнить сканирование и поиск обновлений.

Средство устранения неполадок Центра обновления Windows

Прежде чем перейти к сбросу конфигурации центра обновления Windows настоятельно рекомендуем сначала попробовать более простое и эффективное средство для автоматического исправления проблем в службе обновления Windows – средство устранения неполадок Центра обновления Windows (Windows Update Troubleshooter).

Скачайте и запустите Windows Update Troubleshooter для вашей версии Windows:

  • Windows10 – wu10.diagcab ( https://aka.ms/wudiag ) (либо запустите локальную версию инструмента: Пуск -> Параметры -> Обновления и безопасность -> Устранение неполадок -> Центр обновлений Windows (Start -> Settings -> Updates and Security -> Troubleshoot -> Windows Updates Troubleshooter);
  • Windows 7и Windows 8.1 — WindowsUpdate.diagcab ( https://aka.ms/diag_wu ).

Дождитесь пока средство устранения неполадок Центра обновления Windows просканирует систему и попытается автоматически исправить все ошибки в службе Windows Update и связанных компонентах.

В моем случае была обнаружена и исправлена потенциальная ошибка в базе данных Центра обновления Windows. После этого осталось перезагрузить компьютер и попробовать выполнить поиск обновлений. Если обновления не загружаются или не устанавливаются, перейдите к следующему этапу.

Сброс настроек Windows Update из командной строки

Процесс сброса настроек агента и службы обновления Windows состоит из нескольких этапов. Все описанные операции выполняются в командной строке и собраны в один bat файл (готовый скрипт можно скачать по ссылке ниже).

С помощью данного скрипта можно полностью сбросить конфигурацию службы Центра обновлений Windows, и очистить локальный кэш обновлений. Скрипт является универсальный и будет работать как в Windows 7, Windows 8.1 и Windows 10, так и в Windows Server 2016/ 2012 R2/ 2008 R2. Скрипт помогает устранить большинство типовых ошибок в работе службы Windows Update, когда центр обновлений перестает загружать новые обновления или пишет, что при установке обновления возникают ошибки.

Итак, по порядку о том, что делает скрип:

  1. Остановка службы Windows Update (Центр обновлений Windows), BITS и службы криптографии:
    net stop bits
    net stop wuauserv
    net stop appidsvc
    net stop cryptsvc
    taskkill /im wuauclt.exe /f
  2. Удаление служебных файлов qmgr*.dat в каталоге %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\:
    Del «%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat»
  3. Переименовываем служебные каталоги, в которых хранятся конфигурационные файлы и кэш обновлений (в случае необходимости их можно будет использовать как резервные копии). После перезапуска службы обновления, эти каталоги автоматически пересоздадутся:
    Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
    Ren %systemroot%\system32\catroot2 catroot2.bak
  4. Удаление старого журнала windowsupdate.log
    del /f /s /q %windir%\windowsupdate.log
  5. Сброс разрешений на службы BITS и Windows Update (в случае, если права на службы были изменены)
    sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
    sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY) (A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA) (A;;CCLCSWLOCRRC;;;AU) (A;;CCLCSWRPWPDTLOCRRC;;;PU)
    sc.exe sdset cryptsvc D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
    sc.exe sdset trustedinstaller D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
  6. Перерегистрация файлов системных динамических библиотек (dll), связанных со службами BITS и Windows Update:
    cd /d %windir%\system32
    regsvr32.exe /U /s vbscript.dll
    regsvr32.exe /U /s mshtml.dll
    regsvr32.exe /U /s msjava.dll
    regsvr32.exe /U /s msxml.dll
    regsvr32.exe /U /s actxprxy.dll
    regsvr32.exe /U /s shdocvw.dll
    regsvr32.exe /U /s Mssip32.dll
    regsvr32.exe /U /s wintrust.dll
    regsvr32.exe /U /s initpki.dll
    regsvr32.exe /U /s dssenh.dll
    regsvr32.exe /U /s rsaenh.dll
    regsvr32.exe /U /s gpkcsp.dll
    regsvr32.exe /U /s sccbase.dll
    regsvr32.exe /U /s slbcsp.dll
    regsvr32.exe /U /s cryptdlg.dll
    regsvr32.exe /U /s Urlmon.dll
    regsvr32.exe /U /s Oleaut32.dll
    regsvr32.exe /U /s msxml2.dll
    regsvr32.exe /U /s Browseui.dll
    regsvr32.exe /U /s shell32.dll
    regsvr32.exe /U /s atl.dll
    regsvr32.exe /U /s jscript.dll
    regsvr32.exe /U /s msxml3.dll
    regsvr32.exe /U /s softpub.dll
    regsvr32.exe /U /s wuapi.dll
    regsvr32.exe /U /s wuaueng.dll
    regsvr32.exe /U /s wuaueng1.dll
    regsvr32.exe /U /s wucltui.dll
    regsvr32.exe /U /s wups.dll
    regsvr32.exe /U /s wups2.dll
    regsvr32.exe /U /s wuweb.dll
    regsvr32.exe /U /s scrrun.dll
    regsvr32.exe /U /s msxml6.dll
    regsvr32.exe /U /s ole32.dll
    regsvr32.exe /U /s qmgr.dll
    regsvr32.exe /U /s qmgrprxy.dll
    regsvr32.exe /U /s wucltux.dll
    regsvr32.exe /U /s muweb.dll
    regsvr32.exe /U /s wuwebv.dll

    regsvr32.exe /s vbscript.dll
    regsvr32.exe /s mshtml.dll
    regsvr32.exe /s msjava.dll
    regsvr32.exe /s msxml.dll
    regsvr32.exe /s actxprxy.dll
    regsvr32.exe /s shdocvw.dll
    regsvr32.exe /s Mssip32.dll
    regsvr32.exe /s wintrust.dll
    regsvr32.exe /s initpki.dll
    regsvr32.exe /s dssenh.dll
    regsvr32.exe /s rsaenh.dll
    regsvr32.exe /s gpkcsp.dll
    regsvr32.exe /s sccbase.dll
    regsvr32.exe /s slbcsp.dll
    regsvr32.exe /s cryptdlg.dll
    regsvr32.exe /s Urlmon.dll
    regsvr32.exe /s Oleaut32.dll
    regsvr32.exe /s msxml2.dll
    regsvr32.exe /s Browseui.dll
    regsvr32.exe /s shell32.dll
    regsvr32.exe /s Mssip32.dll
    regsvr32.exe /s atl.dll
    regsvr32.exe /s jscript.dll
    regsvr32.exe /s msxml3.dll
    regsvr32.exe /s softpub.dll
    regsvr32.exe /s wuapi.dll
    regsvr32.exe /s wuaueng.dll
    regsvr32.exe /s wuaueng1.dll
    regsvr32.exe /s wucltui.dll
    regsvr32.exe /s wups.dll
    regsvr32.exe /s wups2.dll
    regsvr32.exe /s wuweb.dll
    regsvr32.exe /s scrrun.dll
    regsvr32.exe /s msxml6.dll
    regsvr32.exe /s ole32.dll
    regsvr32.exe /s qmgr.dll
    regsvr32.exe /s qmgrprxy.dll
    regsvr32.exe /s wucltux.dll
    regsvr32.exe /s muweb.dll
    regsvr32.exe /s wuwebv.dll

  7. Сброс параметров Winsock netsh winsock reset
  8. Сброс параметров системного прокси netsh winhttp reset proxy
  9. Опционально. При использовании локального сервера WSUS, возможно дополнительно сбросить текущую привязку клиента к серверу WSUS путем удаления следующих параметров в ветке HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate:
    REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v AccountDomainSid /f
    REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v PingID /f
    REG DELETE «HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate» /v SusClientId /f
    REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v TargetGroup /f
    REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUServer /f
    REG DELETE «HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate» /v WUStatusServer /f
  10. Запуск остановленных служб:

    sc.exe config wuauserv start= auto
    sc.exe config bits start= delayed-auto
    sc.exe config cryptsvc start= auto
    sc.exe config TrustedInstaller start= demand
    sc.exe config DcomLaunch start= auto
    net start bits
    net start wuauserv
    net start appidsvc
    net start cryptsvc

  11. Опционально. В некоторых случая требуется установить/переустановить последнюю версию агента Windows Update Agent (WUA). Скачать актуальную версию агента можно со страницы https://support.microsoft.com/en-us/kb/949104. Нужно скачать файл для вашей версии Windows.Актуальная версия агента WUA для Windows 7 SP1 x64 — 7.6. Принудительная переустановка агента WindowsUpdate выполняется следующими командами:
    • для Windows 7 x86: WindowsUpdateAgent-7.6-x86.exe /quiet /norestart /wuforce
    • для Windows 7 x64: WindowsUpdateAgent-7.6-x64.exe /quiet /norestart /wuforce

Осталось перезагрузить компьютер и запустить синхронизацию с сервером Windows Update /WSUS.

wuauclt /resetauthorization /detectnow

Затем зайдите в Центр обновления и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.

Сам скрипт reset_win_update.bat можно скачать по ссылке reset_win_update.zip (пункты 9 и 11 в скрипте не выполняются, т.к. являются опциональными). Скрипт нужно скачать, распаковать и запустить с правами администратора.

После этого перезагрузите компьютер, затем зайдите в Центр обновлений и проверьте, пропали ли проблемы при поиске, скачивании и установке обновлений.

Если обновления начали корректно скачиваться и устанавливается, можно удалить папки резервные копии папок:

Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak

Скрипт Reset Windows Update Agent

В галерее скриптов Technet есть довольно полезный и простой скрипт для сброса компонентов центра обновлений — Reset Windows Update Agent. Скрипт универсальный и подходит для всех версий Windows: начиная с Windows XP и заканчивая последними версиями Windows 10. Рассмотрим, как им пользоваться.

  1. Скачайте архив ResetWUEng.zip здесь (https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc) и распакуйте его;
  2. Запустите файл ResetWUEng.cmd с правами администратора;
  3. Скрипт определит вашу версию ОС (в моем примере это Windows 10) и предложит 18 различных опций. Некоторые из них напрямую не относятся к сбросу настроек агента WU, но могут быть полезны для исправления различных неисправностей в Windows (проверка диска chkdsk, исправление ошибок в образе Windows, сброс Winsock, очистка временных файлов и т.д.);
  4. Для сброса настроек Windows Update как правило достаточно использовать опцию 2 —ResetstheWindowsUpdateComponents (Сбросить компоненты службы обновления Windows). Нажмите 2 и Enter;
  5. Скрипт автоматически выполнит все действия, которые мы описали выше при выполнении ручного сброса агента обновлений Windows из командной строки.

Читайте также:  Астра линукс не работает клавиатура
Оцените статью