Updating the windows update agent

Update the Windows Update Agent to the latest version

This article describes how to update the Windows Update Agent to the latest version.

Original product version: В Windows 10 — all editions, Windows Server 2012
Original KB number: В 949104

Summary

If you have automatic updating turned on, the latest version of the Windows Update Agent is downloaded and installed automatically on your computer. Or, you can manually download and install the Windows Update Agent.

Automatically download Windows Update Agent

To download the Windows Update Agent automatically, follow these steps:

Turn on automatic updating. Follow these steps, for the version of Windows that you are running.

Windows 8.1 or Windows 8

  1. Open Windows Update by swiping in from the right edge of the screen (or, if you’re using a mouse, pointing to the lower-right corner of the screen and moving up the mouse pointer), tapping or clicking Settings, tapping or clicking Control Panel, and then tapping or clicking Windows Update.
  2. Tap or click Change settings.
  3. Under Important updates, choose Install updates automatically.
  4. Under Recommended updates, select the Give me recommended updates the same way I receive important updates check box, and then select OK.

Windows 7, Windows Vista, or Windows XP

To turn on automatic updating automatically, select the Fix it button or link, and then select Run in the View Download dialog box. Then, follow the steps in the Fix it wizard.

Restart the Windows Update service. To do this, follow these steps:

  1. Press the Windows logo Key+R to open the Run box.
  2. Type services.msc in the Run box, and then press Enter.
  3. Right-click Windows Update in the Services management console, and then select Stop. If you are running Windows XP, right-click Automatic Updates, and then select Stop.
  4. After Windows Update stops, right-click Windows Update, and then select Start. If you are running Windows XP, right-click Automatic Updates, and then select Start.

Wait for Windows Update to start, and then verify that the Windows Update Agent is updated.

Manually download Windows Update Agent from Microsoft Download Center

Click the download link for your version of Windows to obtain the latest Windows Update Agent.

Stand-alone packages for Windows 8 and Windows Server 2012

The following files are available for download from the Microsoft Download Center.

Operating system Update
All supported x86-based versions of Windows 8 (KB2937636) Download the package now.
All supported x64-based versions of Windows 8 (KB2937636) Download the package now.
All supported x64-based versions of Windows Server 2012 (KB2937636) Download the package now.

Stand-alone packages for Windows 7 SP1 and Windows Server 2008 R2 SP1

The following files are available for download from Windows Update.

Operating system Update
All supported x86-based versions of Windows 7 SP1 Download the package now.
All supported x64-based versions of Windows 7 SP1 Download the package now.
All supported x86-based versions of Windows Server 2008 R2 SP1 Download the package now.
All supported x64-based versions of Windows Server 2008 R2 SP1 Download the package now.
All supported Itanium-based versions of Windows Server 2008 R2 SP1 Download the package now.

Windows 8.1, Windows RT 8.1, and Windows Server 2012 R2 with update 2919355 already include the latest version of the Windows Update Agent.

More information

If you receive a Windows Update error, try Solutions for common Windows Update errors.

For more information about how to check which version of the Windows Update Agent is installed, follow these steps:

  1. Open the %systemroot%\system32 folder. %systemroot% is the folder in which Windows is installed. For example, the %systemroot% folder is C:\Windows .
  2. Right-click Wuaueng.dll, and then select Properties.
  3. Select the Details tab, and then locate the file version number.

The latest version of the Windows Update Agent for Windows 8.1 is 7.9.9600.16422. The latest version of the Windows Update Agent for Windows 8 is 7.8.9200.16693. The latest version of the Windows Update Agent for Windows 7, Windows Vista, and Windows XP is 7.6.7600.256.

Improvements in version 7.6.7600.256 of Windows Update Agent

A hardened infrastructure so that the Windows Update client will trust only those files that are signed by a new certificate. The certificate is used solely to protect updates to the Windows Update client.

A more secure communication channel for the Windows Update client

Improvements in version 7.4.7600.226 of Windows Update Agent

  • Improved scan times for Windows updates.
  • Improved Windows Update UI for computers that are running Windows Vista or Windows Server 2008.
  • More visible and detailed descriptions of updates.
  • Improvements in how users are notified about service packs.

Issues that are fixed in version 7.2.6001.788 of Windows Update Agent

Version 7.2.6001.788 of the Windows Update Agent fixes the following issue. This issue was not previously documented in a Microsoft Knowledge Base article:

  • When you try to install 80 or more updates at the same time from Windows Update or Microsoft Update, you receive a «0x80070057» error code.

Improvements in version 7.2.6001.784 of Windows Update Agent

  • Improved scan times for Windows Update
  • Improved speed at which signature updates are delivered
  • Support for Windows Installer reinstallation
  • Improved error messaging

Issues that are fixed by version 7.0.6000.381 of Windows Update Agent

Version 7.0.6000.381 of the Windows Update Agent fixes the following issues. These issues were not previously documented in a Microsoft Knowledge Base article:

  • The Background Intelligent Transfer Service (BITS) crashes on a Windows Vista-based computer. For more information, see An update is available to fix a Background Intelligent Transfer Service (BITS) crash on a Windows Vista-based computer.
  • A fix is included that reduces the number of restarts that are required for the stand-alone installer when Multilingual User Interface Pack (MUI) files are being used.
  • User interface elements in the Korean, Simplified Chinese, and Traditional Chinese languages are fixed.
  • The Windows Vista installation experience is improved.

Windows Update helps keep your computer up-to-date and secure by downloading and installing the latest security and other updates from Microsoft. Windows Update determines which updates apply to your computer.

Microsoft periodically makes software updates available to users of Windows and other Microsoft software. These include updates that improve reliability and performance, updates that provide new protections against malware and other potentially unwanted software, and upgrades to Windows features. To improve the performance or the reliability of hardware components on the computer, Microsoft may also provide updates to device drivers that are supplied by the computer manufacturer.

If you turn on Windows Update, software components that are directly related to Windows Update will have to be updated occasionally on your computer. These updates must be performed before Windows Update can check for required updates or before it can install other updates. These required updates fix errors, provide ongoing improvements, and maintain compatibility with the Microsoft servers that support Windows Update. If you disable Windows Update, you will not receive these updates.

Windows Update is configured to install updates automatically when you select the recommended option during Windows Out Of Box Experience (OOBE) Setup. You can also turn on Windows Update by selecting one of following settings in the Automatic Updates item in Control Panel:

  • Automatic (recommended).
  • Download updates for me, but let me choose when to install them.
  • Notify me, but don’t automatically download or install them.

After you turn on Windows Update, the required updates to components of Windows Update will be downloaded and installed automatically without notifying you. This behavior occurs regardless of which setting you use to turn on Windows Update. If you do not want to receive required updates, you can disable automatic updates in Control Panel.

The updates to Windows Update itself typically do the following: Address feedback from customers, improve compatibility, service performance and reliability, and enable new service capabilities. When the Windows Update server is updated, a corresponding client update is typically required. During an agent self-update operation, Windows Update Agent files may be added, modified, or replaced. For example, Windows Update Agent files that help display the user experience or that determine whether updates apply to a particular system may be added. This behavior occurs when a system is set to automatically check for available updates. This does not occur when automatic updates are turned off. For example, this behavior does not occur if you select Never check for updates in Windows Vista and Windows 7 or if you select Turn off Automatic Updates in Windows XP.

Administrators will receive the latest version of the Windows Update Agent for deployment through Windows Server Update Services (WSUS).

Сброс настроек службы обновлений 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 из командной строки.

Читайте также:  Кнопка сброса настроек windows
Оцените статью