Windows update agent wua

A tool to keep your Windows up to date

The operating systems developed by Microsoft, are constantly evolving due mainly to error detections, the lack of compatibility with some devices and the improvements of the programs that are native to the system. That’s why it’s highly advisable to keep our Windows installation updated at all times.

Windows already has a client thanks to which it’s possible to update the system each time a new correction is launched, but it’s possible that due to the inappropriate management of the system registry, a file cleanout or a virus, the program has disappeared, something that can quickly be solved by reinstalling Windows Update Agent. It’s one of the most important programs of those that are part of our operating system, and it’s inadvisable to get rid of it, because if we don’t keep our operating system updated, it can be a lot less stable and weaker against any threat.

Thanks to Windows Update Agent you’ll be able to maintain your operating system updated.

Leticia Sorivella

My name is Leticia. I really like movies, television, and music. That is why I studied Audiovisual Communication. In the beginning, I wanted to work in movies, but I ended up on television. Then, I went from being behind the cameras to being in…

Page update date :

Page creation date :

summary

Use WUA to check for updates (in KB) that are installed on the Windows you are currently using.

KB がインストールされている一覧を表示しています。

Operating Environment

Operation check environment

Windows Version
  • Windows 7 Ultimate
.NET Framework Version
  • 4

System requirements required

Windows Version
  • Windows 7 (other environments unconfirmed)
.NET Framework Version
  • 4.0 (no other environments confirmed)

substance

About this sample

The goal of this sample is to determine the KB that is installed on Windows, and the purpose is almost the same as «Use WMI to determine the installation status of Windows updates.» However, this sample is checked using «WUA» instead of WMI.

The KB description is described in «Use WMI to find out how Windows updates are installed,» so check there.

What is WUA?

WUA stands for «Windows Update Agent» and is a set of COM interfaces that allow access to Windows Update and Windows Server Update Services (WSUS). You can use it to determine which KB is installed on Windows.

For a detailed explanation of WUA and programming with WUA, see the following links:

  • Windows Update Agent API
  • Is there a way to get a list of all the updates that have been added to my computer?
  • IUpdateSearcher::Search Method

Programs that search for KB installation status

Adding References (C#)

To use WUA, you must reference the WUAPI 2.0 Type Library from COM.

For C# projects, right-click References from Solution Explorer and choose Add References.

参照の追加ダイアログで WUAPI 2.0 Type Library を選択して追加しています

When the Add Reference dialog appears, select WUAPI 2.0 Type Library from the COM tab and click the OK button.

OK if «WUApiLib» is added to the Solution Explorer reference settings.

Add a reference (VB.NET)

For VB.NET, right-click My Project from Solution Explorer and choose Open.

プロジェクトのプロパティから参照タブを選択し WUAPI 2.0 Type Library の参照を追加しています

When the properties open, click «Browse» from the tab on the left, click the Add button on the right. As in C#, the Add Reference dialog is displayed, so select «WUAPI 2.0 Type Library» from the «COM» tab and click the OK button.

WUAPI 2.0 Type Library が追加されていることを確認し、WUApiLib 名前空間をインポートします

If you return to the previous screen and add «WUAPI 2.0 Type Library» to the middle list, it is OK.

Also, let’s check «WUApiLib» from the list below to omit the description of the namespace in the program.

scene

KB チェック実行ボタンと検索結果一覧を表示するためのテキストボックスを配置

The screen used in this sample is a simple screen with an execution button to check the installation status of the KB and a text box that displays the results.

I’m making it in WPF, but the same screen is configurable in Windows Form.

program

C UpdateSession # adds «»using WUApiLib; to the beginning of the code to reduce the description of classes and other namespaces. In VB.NET, you specified to import the namespace in the project properties, so you don’t need to write anything special, but if you haven’t, you need to add «.Imports WUApiLib

* In both C# and VB.NET, if all class names are written from a namespace such as «,WUApiLib.UpdateSession the above specification is not necessary.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WUApiLib; // 参照から「COM」より「WUAPI 2.0 Type Library」追加

Below is the code that searches and lists the installed KB.

C #

this.ResultTextBox.Text = "";

// アップデートセッション 作成
UpdateSession us = new UpdateSession();

// アップデート検索インスタンス作成
IUpdateSearcher searcher = us.CreateUpdateSearcher();

// 「インストールされているもの」「ソフトウェア」で検索し、結果を取得
ISearchResult result = searcher.Search("IsInstalled=1 and Type='Software'");

StringBuilder builder = new StringBuilder();

// アップデート一覧からタイトル一覧を取得する。
foreach (IUpdate u in result.Updates)
{
  builder.AppendLine("[" + u.Title + "]");
}

builder.AppendLine();

// アップデート一覧から KB の番号だけ取得する。
foreach (IUpdate u in result.Updates)
{
  foreach (string str in u.KBArticleIDs)
  {
    builder.AppendLine(str);
  }
}

// 取得した KB 一覧をセット
this.ResultTextBox.Text = builder.ToString();

VB.NET

Me.ResultTextBox.Text = ""

' アップデートセッション 作成
Dim us As New UpdateSession()

' アップデート検索インスタンス作成
Dim searcher As IUpdateSearcher = us.CreateUpdateSearcher()

' 「インストールされているもの」「ソフトウェア」で検索し、結果を取得
Dim result As ISearchResult = searcher.Search("IsInstalled=1 and Type='Software'")

Dim builder As New System.Text.StringBuilder()

' アップデート一覧からタイトル一覧を取得する。
For Each u As IUpdate In result.Updates
  builder.AppendLine("[" + u.Title + "]")
Next

builder.AppendLine()

' アップデート一覧から KB の番号だけ取得する。
For Each u As IUpdate In result.Updates
  For Each str As String In u.KBArticleIDs
    builder.AppendLine(str)
  Next
Next

' 取得した KB 一覧をセット
Me.ResultTextBox.Text = builder.ToString()

The content is as commented.

IUpdateSearcher.SearchYou can change what you get by the string you specify as the argument of the method. For more information, see IUpdateSearcher::Search Method.

Microsoft Windows Update Agent (WUA) is an agent program used for automatic patch delivery of Windows Server Update Services. It scans your PC to identify the Windows version you are using. This facilitates the updating process by enabling the update agent to push new updates onto your device.

Windows Vista saw the initial release of the Windows Update Agent. It took the place of the Automatic Updates client and the Windows Update online application. Since it is a far better updating solution, Microsoft has included it in all subsequent releases.

The Automatic Updates client’s features are enhanced by the Windows Update Agent. For many users, browsing the Windows Update page was very difficult. Time lost and several mistakes can result from not knowing what update you require.

This can be avoided with the Windows Update Agent.

Updates that are required or suggested can be automatically chosen, downloaded, and installed.

Has there ever been an unplanned computer crash?

Utilizing the Windows Update Client facilitates a quicker and simpler recovery process. The agent makes use of a Windows Vista-introduced feature, which makes this possible. Windows manages system files more effectively, making recovery simpler.

What is the process for the Windows Update Agent?

Updates are found and downloaded by the update agent from reliable Microsoft sources. This comprises:

  • The server for Windows Server Update Services (WSUS)
  • The updated web pages of Microsoft
  • Distribution via peer-to-peer (Windows 10)

The update agent starts operating as soon as it finds a new update that is absent from your machine. It saves you time not having to search for updates and figure out which one to install on your own.

The following places are where you can control the Windows Update Agent:

  • Command Center
  • The Settings app
  • Group Guidelines
  • Microsoft Intune
  • PowerShell for Windows

The following Windows versions are compatible with Windows Update Agent:

  • Vista
  • Windows 7
  • Windows 8
  • Windows 10

How can I find out what Windows Update Agent version is installed?

  1. Download Wuredist.cab and use WinHTTP (Windows HTTP Services) APIs.
  2. Verify whether the file has a Microsoft digital signature using Cryptography Functions. Do not proceed with this file if a digital signature cannot be validated.
  3. The XML file contained in Wuredist.cab can be extracted by using File Decompression Interface APIs.
  4. Find out which architecture is being used by your machine. Find the WURedist/StandaloneRedist/architecture node using the Microsoft XML Core Services (MSXML) APIs.
  5. To determine the installed version of the Windows Update Agent, use the method IWindowsUpdateAgentInfo::GetInfo.

You cannot find out whether the version of your Windows Update Agent you are using is the most recent using this method. But knowing what version you have lets you investigate whether or not you should update it.

Windows Update Agent components

Five crucial components of the Windows Update Agent are defined by Microsoft:

  • Service Availability: A Windows update is found, downloaded, and installed by this component.It manages updates for a few other apps as well.
  • Server Connectivity: An application program interface, or API, is used here. It establishes a connection between your PC and the networks Microsoft uses to distribute updates. These are seen up above.
  • Update Detection: Consistently checks your PC for updates. Because you will not need to manually check for updates, you can automate the update process.
  • Update Downloads: Microsoft utilizes safe places to host both required and accessible updates. See the preceding list once more.
  • Installs the available updates throughout the update installation process.

Windows 10’s Update Agent Modifications

The manual operation of the Windows Update Agent is no longer supported in Windows 10. The fact that all updates are now downloaded and installed automatically is a significant advance. This implies that you are no longer able to choose which updates and installations to install.

Windows 10 users have access to peer-to-peer support when updating. Other users’ downloaded updates are distributed over your system’s bandwidth. This can be adjusted so that it just distributes via a local area network.

Windows Update Agent

For Windows 10 users, cumulative updates are also included. This implies that previous updates can be bundled together by the Windows Update Agent. For instance, the October update includes all of the changes that were released in July, August, and September.

The necessity to download several updates is eliminated by these cumulative updates. Additionally, it saves you from repeatedly restarting your computer. However, it has a drawback. It is now unable to get and install updates that address specific issues.

Update Windows Update Agent: A Guide

Make sure your computer has automatic updates enabled before you start updating.

In Windows 10, use the search bar located in the lower-left corner of the screen to look up Windows Update Settings. Click the corresponding “System settings” link. Choose Automatic from the drop-down box under Advanced Options.

Locate the original Control Panel if Windows is not up to date. Click the Change Settings link on the left after selecting the Windows Update icon. Make sure that you have enabled automatic updates under the Important Updates section.

Windows 10: How to Update Windows Update Agent

1. In your search box, type “Run,” then select the application.

Windows Update Agent

2. After typing services.msc, press OK. As a result, the Services Manager will now launch.

Windows Update Agent

3. After you find Windows Update in the list of services, scroll down.

Windows Update Agent

4. To stop Windows Update, right-click on it and select Stop.

Windows Update Agent

5. Once the service has been effectively halted, right-click on Windows Update once more. Click on Start this time.

Windows Update Agent

6. After quitting Services Manager, launch Windows Update.

Windows 7: How to Update Windows Update Agent

  • Simultaneously press the Windows and R keys on your keyboard. The Run window will open as a result.

Windows Update Agent

  • After entering services.msc, click the OK button.
  • There will be a pop-up window. Navigate below to locate Windows Update.
  • Select Stop with a right-click on Windows Update.

Windows Update Agent

  • Once more, right-click on Windows Update and select Start.
  • After quitting Services Manager, launch Windows Update.

Resetting or Correcting Windows Update Agent on a Windows Computer

Do you continue to have concerns and problems with the Windows Update Agent? Sometimes, even updating it to the most recent version will not solve the problem. Fortunately, correcting it is a simple procedure.

A script written by Manuel F. Gil is accessible on Tech.net. It makes it simple to reset and resolve issues with the Windows Update Agent. This operation used to take hours since so many files needed to be removed or renamed. This may be accomplished rapidly and effectively in bulk via the script.

They also published a software called the Reset Windows Update Tool. It can be downloaded and used in the same way as the script. There is additional information on the webpage. You can review the detailed licensing terms, features, specifications, and documentation.

The following Windows platforms have been tested to function with this method:

  • Windows 10
  • Windows 8
  • Windows 7
  • Vista
  • Windows XP

System files are altered and removed using this procedure. Before starting this process, please take the time to read these crucial notes:

  • Resetting the Windows Update Agent should only be done if Windows updates are not working for you. There is no need to reset the agent if your updates are working properly.
  • Prior to trying to reset the Windows Update Agent, make a backup of your files and system. The author of the script disclaims all liability for any harm the script may cause, as stated in the Terms of Use.
  • To run the script, you must have administrator privileges on your user.

Once you have completed the essential procedures to run the script safely, refer to the guide below.

1. Click on this link to open the Tech.net file. To confirm the script’s reliability, you can read about it and its operation on this page.

2. Next to Download, select the ResetWUEng.zip option.

Windows Update Agent

3. Click to accept the license. I concur.

Windows Update Agent

4. On your computer, locate the folder contained in the downloaded.zip file and extract it.

5. Choose ResetWUEng.cmd and select Run as Administrator.

6. By entering Y, you agree to the terms and conditions of use.

The command window will display 18 options for you to select from. All of these programs can be used to perform various checks and system fixes. Not all of the Windows Update Agents are necessary to reset the Windows Update Agent, though.

Windows Update Agent

To execute an option, enter the number that corresponds to it and hit the keyboard’s enter key. For instance, enter 18 and hit Enter to have the script restart your computer.

To fix the Windows Update Agent, we advise doing the following via the script:

  • Windows Update Components should be reset (2)
  • In Windows, remove temporary files (3)
  • Launch the program System File Checker (6).
  • Carry out maintenance tasks automatically (9)
  • Erroneously delete registry values (11)
  • Look up Windows updates (13)

Note: There is no way to reverse or confirm the execution of any of these selections once you hit enter. To get Help, put in the? symbol and hit Enter if you are not sure if you should run an option.

It is thrilling to learn about the Windows Update Agent because it is important to the overall health of your computer. To ensure that you do not have any issues when updating, always keep the agent up to date.

If you’re in search of a software provider known for integrity and ethical business standards, consider FastSoftware. As a Microsoft Certified Partner and BBB-accredited business, we prioritize delivering a reliable and satisfactory experience for our customers, offering the software solutions they need. Count on us for support before, during, and after every transaction.

Ask the publishers to restore access to 500,000+ books.

Internet Archive Audio

Live Music Archive

Librivox Free Audio

Featured

  • All Audio
  • Grateful Dead
  • Netlabels
  • Old Time Radio
  • 78 RPMs and Cylinder Recordings

Top

  • Audio Books & Poetry
  • Computers, Technology and Science
  • Music, Arts & Culture
  • News & Public Affairs
  • Spirituality & Religion
  • Podcasts
  • Radio News Archive

Images

Metropolitan Museum

Cleveland Museum of Art

Featured

  • All Images
  • Flickr Commons
  • Occupy Wall Street Flickr
  • Cover Art
  • USGS Maps

Top

  • NASA Images
  • Solar System Collection
  • Ames Research Center

Software

Internet Arcade

Console Living Room

Featured

  • All Software
  • Old School Emulation
  • MS-DOS Games
  • Historical Software
  • Classic PC Games
  • Software Library

Top

  • Kodi Archive and Support File
  • Vintage Software
  • APK
  • MS-DOS
  • CD-ROM Software
  • CD-ROM Software Library
  • Software Sites
  • Tucows Software Library
  • Shareware CD-ROMs
  • Software Capsules Compilation
  • CD-ROM Images
  • ZX Spectrum
  • DOOM Level CD

Texts

Open Library

American Libraries

Featured

  • All Texts
  • Smithsonian Libraries
  • FEDLINK (US)
  • Genealogy
  • Lincoln Collection

Top

  • American Libraries
  • Canadian Libraries
  • Universal Library
  • Project Gutenberg
  • Children’s Library
  • Biodiversity Heritage Library
  • Books by Language
  • Additional Collections

Video

TV News

Understanding 9/11

Featured

  • All Video
  • Prelinger Archives
  • Democracy Now!
  • Occupy Wall Street
  • TV NSA Clip Library

Top

  • Animation & Cartoons
  • Arts & Music
  • Computers & Technology
  • Cultural & Academic Films
  • Ephemeral Films
  • Movies
  • News & Public Affairs
  • Spirituality & Religion
  • Sports Videos
  • Television
  • Videogame Videos
  • Vlogs
  • Youth Media

Search the history of over 946 billion
web pages
on the Internet.

Search the Wayback Machine

Search icon
An illustration of a magnifying glass.

Mobile Apps

  • Wayback Machine (iOS)
  • Wayback Machine (Android)

Browser Extensions

  • Chrome
  • Firefox
  • Safari
  • Edge

Archive-It Subscription

  • Explore the Collections
  • Learn More
  • Build Collections

Save Page Now

Capture a web page as it appears now for use as a trusted citation in the future.

Please enter a valid web address

  • About
  • Blog
  • Projects
  • Help
  • Donate
  • Contact
  • Jobs
  • Volunteer
  • People

  • About
  • Blog
  • Projects
  • Help
  • Donate

    Donate icon
    An illustration of a heart shape

  • Contact
  • Jobs
  • Volunteer
  • People

Files for windows-update-agent-7.6


      
Name Last modified Size
Go to parent directory
WindowsUpdateAgent-7.6-x64.exe 01-Aug-2021 08:43 10.8M
WindowsUpdateAgent-7.6-x86.exe 01-Aug-2021 08:43 9.3M
windows-update-agent-7.6_archive.torrent 06-Jan-2025 13:47 2.7K
windows-update-agent-7.6_files.xml 06-Jan-2025 13:47 2.1K
windows-update-agent-7.6_meta.sqlite 01-Aug-2021 08:43 20.0K
windows-update-agent-7.6_meta.xml 01-Aug-2021 08:43 829.0B
windows-update-agent-7.6_reviews.xml 06-Jan-2025 13:47 512.0B

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

Содержание:

  • Средство устранения неполадок Центра обновления Windows
  • Сброс настроек Windows Update с помощью PowerShell
  • Утилита Reset Windows Update Tool
  • Восстановление исходных настроек Windows Update из командной строки

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

windows update error

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

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

В Windows 10 и 11 Windows Update Troubleshooter уже встроен в современную панель Settings. Для предыдущих версий Windows его придется скачать вручную по ссылкам ниже:

  • Windows 11 — Settings -> System -> Troubleshooter -> Other Troubleshooter -> Windows Update;
    windows 11 исправление ошибок в windows update troubleshooter

  • Windows 10 – скачите wu10.diagcab по ссылке https://aka.ms/wudiag , либо запустите локальную версию инструмента: Пуск -> Параметры -> Обновления и безопасность -> Устранение неполадок -> Центр обновлений Windows (Start -> Settings -> Updates and Security -> Troubleshoot -> Additional Troubleshooters-> Windows Updates – resolve problems that prevent you from updating windows);
    Windows10 средство устранения неполадок Центра обновления Windows (Windows Update Troubleshooter

    Для быстрого доступа к средствам исправления неполадок Windows можно использовать команду ms-settings:
    ms-settings:troubleshoot

  • Windows 7 и Windows 8.1 — WindowsUpdate.diagcab (https://aka.ms/diag_wu).

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

исправить ошибки в windows upadate встроенной утилитой

исправить ошибкт Windows Update автоматически

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

Сброс настроек Windows Update с помощью PowerShell

Вы можете использовать PowerShell модуль PSWindowsUpdate для сброса настроек агента и службы Windows Update.

Установите модуль на свой компьютер из галереи скриптов PSGallery:

Install-Module -Name PSWindowsUpdate

Разрешите запуск PowerShell скриптов:

Set-ExecutionPolicy –ExecutionPolicy RemoteSigned -force

Выполните команду:

Reset-WUComponents –verbose

сброс настройки службы обновлений windows Reset-WUComponents powershell команда

Команда Reset-WUComponents выполняет действия, по остановке служб, перерегистрации dll и очистке каталога C:\Windows\SoftwareDistribution, что и описанный чуть ниже bat скрипт.

VERBOSE: Background Intelligent Transfer Service (BITS)
VERBOSE: Windows Update (wuauserv)
VERBOSE: Application Identity (appidsvc)
VERBOSE: Cryptographic Services (cryptsvc)
Step 2: Delete the qmgr*.dat files
Step 3: Backup software distribution folders
VERBOSE: Renaming Software Distribution folder to C:\Windows\SoftwareDistribution.bak
VERBOSE: Renaming CatRoot  folder to C:\Windows\System32\Catroot2.bak
 Step 4: Remove old Windows Update logs
VERBOSE: Deleting the C:\Windows\WindowsUpdate.log files.
Step 5: Reset Windows Update services
VERBOSE: Reset BITS service
VERBOSE: Reset Windows Update service
Step 6: Reregister dll's
VERBOSE: regsvr32.exe / s atl.dll
VERBOSE: regsvr32.exe / s urlmon.dll
VERBOSE: regsvr32.exe / s mshtml.dll
VERBOSE: regsvr32.exe / s shdocvw.dll
VERBOSE: regsvr32.exe / s browseui.dll
VERBOSE: regsvr32.exe / s jscript.dll
VERBOSE: regsvr32.exe / s vbscript.dll
VERBOSE: regsvr32.exe / s scrrun.dll
VERBOSE: regsvr32.exe / s msxml.dll
VERBOSE: regsvr32.exe / s msxml3.dll
VERBOSE: regsvr32.exe / s msxml6.dll
VERBOSE: regsvr32.exe / s actxprxy.dll
VERBOSE: regsvr32.exe / s softpub.dll
VERBOSE: regsvr32.exe / s wintrust.dll
VERBOSE: regsvr32.exe / s dssenh.dll
VERBOSE: regsvr32.exe / s rsaenh.dll
 VERBOSE: regsvr32.exe / s gpkcsp.dll
VERBOSE: regsvr32.exe / s sccbase.dll
VERBOSE: regsvr32.exe / s slbcsp.dll
VERBOSE: regsvr32.exe / s cryptdlg.dll
VERBOSE: regsvr32.exe / s oleaut32.dll
VERBOSE: regsvr32.exe / s ole32.dll
VERBOSE: regsvr32.exe / s shell32.dll
VERBOSE: regsvr32.exe / s initpki.dll
VERBOSE: regsvr32.exe / s wuapi.dll
VERBOSE: regsvr32.exe / s wuaueng.dll
VERBOSE: regsvr32.exe / s wuaueng1.dll
VERBOSE: regsvr32.exe / s wucltui.dll
VERBOSE: regsvr32.exe / s wups.dll
VERBOSE: regsvr32.exe / s wups2.dll
VERBOSE: regsvr32.exe / s wuweb.dll
VERBOSE: regsvr32.exe / s qmgr.dll
VERBOSE: regsvr32.exe / s qmgrprxy.dll
VERBOSE: regsvr32.exe / s wucltux.dll
VERBOSE: regsvr32.exe / s muweb.dll
VERBOSE: regsvr32.exe / s wuwebv.dll
Step 7: Reset WinSock
VERBOSE: netsh winsock reset
Step 8: Reset Proxy
VERBOSE: netsh winhttp reset proxy
Step 9: Start Windows Update services
VERBOSE: Cryptographic Services (cryptsvc)
VERBOSE: Application Identity (appidsvc)
VERBOSE: Windows Update (wuauserv)
VERBOSE: Background Intelligent Transfer Service (BITS)
Step 10: Start Windows Update services
VERBOSE: wuauclt /resetauthorization /detectnow

Запустите поиск обновлений из панели управления или выполните поиск доступных обновлений с помощью команды PowerShell:

Get-WUList

powershell проверить обновления в windows

Утилита Reset Windows Update Tool

Есть еще одни полезный и простой инструмент для сброса настроек Windows Update — Reset Windows Update Tool. Раньше это скрипт был доступен на TechNet. Сейчас автор ведет репозиторий на GitHub (м https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool ).

Для загрузки предлагается скомпилированный exe файл (C++) или обычный скрипт. Я предпочитаю использовать cmd скрипт.

  1. Скачайте ResetWUEng.zip и распакуйте на диск;
  2. Запустите файл ResetWUEng.cmd с правами администратора;
  3. Скрипт определит вашу версию ОС (в моем примере это Windows 10) и предложит 18 различных опций. Некоторые из них напрямую не относятся к сбросу настроек агента WU, но могут быть полезны для исправления различных неисправностей в Windows (проверка диска chkdsk, исправление ошибок в образе Windows с помощью DISM, сброс Winsock, очистка временных файлов и т.д.);
    утилита сброса настроек обновлений Reset Windows Update Agent

  4. Для сброса настроек Windows Update достаточно использовать опцию 2 — Resets the Windows Update Components (Сбросить компоненты службы обновления Windows). Нажмите 2 и Enter;
  5. Скрипт автоматически выполнит все действия, которые мы описали выше при выполнении ручного сброса агента обновлений Windows из командной строки.
    скрипт для сброса компонентов windows update

    Вы можете самостоятельно посмотреть, что делает скрипт, открыв в файл ResetWUEng.cmd в любом текстовом редакторе и изучив его содержимое. Например, опция 2 отправляет на процедуру components.

    ResetWUEng.cmd

  6. После окончания работы скрипта Reset Windows Update Agent перезагрузите компьютер и проверьте работу службы обновлений.

Скрипт ResetWUEng.cmd универсальный и подходит для всех версий Windows: начиная с Windows XP и вплоть до Windows 11.

Восстановление исходных настроек Windows Update из командной строки

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

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

Убедитесь, что настройки Windows Update на вашем компьютере на задаются с помощью доменных или локальных политик. Для вывода результирующих настроек GPO можно воспользоваться утилитой gpresult или rsop.msc. Можно сбросить настройки локальной GPO по этой инструкции.

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

  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 /s atl.dll
    regsvr32.exe /s urlmon.dll
    regsvr32.exe /s mshtml.dll
    regsvr32.exe /s shdocvw.dll
    regsvr32.exe /s browseui.dll
    regsvr32.exe /s jscript.dll
    regsvr32.exe /s vbscript.dll
    regsvr32.exe /s scrrun.dll
    regsvr32.exe /s msxml.dll
    regsvr32.exe /s msxml3.dll
    regsvr32.exe /s msxml6.dll
    regsvr32.exe /s actxprxy.dll
    regsvr32.exe /s softpub.dll
    regsvr32.exe /s wintrust.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 oleaut32.dll
    regsvr32.exe /s ole32.dll
    regsvr32.exe /s shell32.dll
    regsvr32.exe /s initpki.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 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 7 и 8.1 можно установить/переустановить последнюю версию агента Windows Update Agent (WUA). Скачать актуальную версию агента можно со страницы https://support.microsoft.com/en-us/kb/949104. Нужно скачать файл для вашей версии Windows
    Скачать последнюю версию агента Windows Update

    Актуальная версия агента 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 Agent (WUA) в Windows 7 можно узнать в свойствах файла %windir%\system32\Wuaueng.dll. В нашем примере это 7.6.7600.256.

    Как узнать версию агента WUA (библиотека Wuaueng.dll)

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

wuauclt /resetauthorization /detectnow

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

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

run-as-admin

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

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

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

Если ничего не помогло, попробуйте вручную скачать и установить последнее кумулятивное обновление для вашей версии Windows из каталога обновлений Microsoft Update Catalog.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Виджет яркости экрана windows 10
  • Weather app for windows
  • How to install virtual machine on windows 10
  • Windows 8 windows 7 windows vista windows xp mac os x
  • Java 8 windows server 2008