- How to Remove Installed Updates in Windows 10 and Windows Server?
- How to Uninstall Windows Updates Using the Control Panel?
- How to Prevent (Block) a Specific Update from Installing in Windows 10?
- WUSA.exe: Removing Windows Updates via the Command Line
- How to Uninstall a Windows Update using WSUS?
- Removing Windows Update Using the GPO
- How To Uninstall Windows Updates When Computer Is Not Booting?
- Сброс центра обновления Windows 10
- Средство устранения неполадок
- Удаление папки SoftwareDistibution
- Выполнение скрипта
- Загрузить скрипт с форума Microsoft
- Создание скрипта самостоятельно
- Рекомендованные публикации
- Добавить комментарий Отменить ответ
- Сброс настроек службы обновлений Windows Update
- Средство устранения неполадок Центра обновления Windows
- Сброс настроек Windows Update из командной строки
- Скрипт Reset Windows Update Agent
How to Remove Installed Updates in Windows 10 and Windows Server?
Sometimes it happens that the security updates for Microsoft products (released under MS Patch Tuesday) cause problems with the OS or third-party software. The issues caused by the updates can be either mass and occur in a large number of devices or private that occur in some combinations of the Windows OS version and some apps.
If the Windows (or Office) patch causes a problem on the computers of many users, and this is confirmed by Microsoft experts, the update is pulled by the company and after a while is replaced by a new one with the bugs fixed. But if necessary, in Windows there is a way to uninstall any security update or patch.
In this article we’ll show how to properly uninstall updates in Windows OS (the article covers Windows 10, 8.1, 7 and Windows Server 2016, 2012/R2, 2008/R2). These ways of removing updates can be used if you installed the update manually from a CAB or MSU file, your device automatically received it from the Windows Update servers or your WSUS server.
There are several ways to uninstall updates in Windows (Windows Server):
How to Uninstall Windows Updates Using the Control Panel?
Let’s look on how to uninstall updates in Windows 10. Open the menu Settings app and go to the Update & Security -> Windows update -> View Update History -> Uninstall updates.
You can also go to the “Uninstall an update” panel using the classic Control Panel (Control Panel\Programs\Programs and Features) and press the button “View installed updates”.
A list of all Windows and Office updates installed on your device will appear. Find the necessary update in the list (or, to be more precise, unnecessary :)), select it, click the Uninstall button. The uninstall update wizard starts.
Click Yes when prompted if you want to uninstall this update.
And wait till it is uninstalled. After the update is removed, Windows may request a system restart.
How to Prevent (Block) a Specific Update from Installing in Windows 10?
If your computer is configured to automatically receive Windows updates through Windows Update or WSUS, this update will most likely be installed on your computer again. But you can prevent the installation of a specific update by hiding (blocking) it. To do this, use the official tool Microsoft Show or Hide Updates https://support.microsoft.com/en-us/help/3073930/how-to-temporarily-prevent-a-driver-update-from-reinstalling-in-window
- Download and run the wushowhide.diagcab;
- Select the option Hide Updates;
- Select the update you want to hide and click Next;
- After that, this update won’t be installed in Windows automatically via Windows Update. You can remove the hidden update by selecting it in the Show hidden updates.
WUSA.exe: Removing Windows Updates via the Command Line
Windows updates can also be uninstalled from the command prompt. To do it, there is a built-in CLI tool wusa.exe (Windows Update Standalone Installer).
You can list all updates installed on a computer with the command:
wmic qfe list brief /format:table
Using the following command, running as administrator, you can remove the specific update (KB 4100347):
wusa.exe /uninstall /kb:4100347
A user must confirm the removing of the update.
If the update has to be uninstalled in a quiet mode without a user request and notifying about of the subsequent system reboot, the command will look like that:
wusa.exe /quiet /uninstall /kb:4100347 /promptrestart
If you need to suppress the reboot request, use the command:
wusa.exe /quiet /uninstall /kb:4100347 /norestart
You can also remove the update from PowerShell using the PSWindowsUpdate module. The Remove-WindowsUpdate cmdlet is used:
Remove-WindowsUpdate -KBArticleID KB4100347 -NoRestart
The Windows update uninstall event is recorded to the Setup log with the EventID 7 from the WUSA source:
Using PsExec you can uninstall an update on a remote computer, the command is as follows:
psexec.exe \\RemotePCName C:\Windows\System32\wusa.exe /quiet /uninstall /kb:4100347 /warnrestart:600
How to Uninstall a Windows Update using WSUS?
If a corporate WSUS server is used in your company to install updates on a domain computers and servers, you can remove the update approved for install using the Update Services management console. To do it, right-click the Updates branch and then click Search in the menu.
Specify the KB number or a security bulletin you need to find and click Find now. In the list containing the updates that have been found for different Windows versions, select the updates to be uninstalled and click Approve in the menu.
Then select the WSUS Target group you need and choose Approved for Removal in the drop-down list.
In our example, we want to uninstall update on a group of computers named Servers (more about WSUS GPO targeting).
After updating data on the side of WSUS clients (which occurs on a schedule in accordance with the WSUS policy and the synchronization frequency, which is set by the Automatic Update detection frequency, or can be done manually by running wuauclt /detectnow ) , the corresponding update appears with the prefix (Uninstall:) in its name in the Windows Update panel.
After the update has been uninstalled, this event is displayed in Windows Update History.
Removing Windows Update Using the GPO
If you want to remove a specific update on multiple computers of Active Directory domain that doesn’t use WSUS, you can use Startup/Shutdown GPO scripts.
To do it, create a new GPO object linked to the necessary OU, AD site or computer group. Then create a new startup script with the wusa.exe command in the section Computer Configuration -> Policies -> Windows Settings -> Scripts (Startup/Shutdown).
You can also use PowerShell startup scripts to remove installed updates.
How To Uninstall Windows Updates When Computer Is Not Booting?
Sometimes it happens that you cannot remove an update directly from the Windows, since the OS simply not booting after installing the problematic update. In this case, you may have to boot the computer from the rescue or install boot disk and delete the updates via DISM (see the article “Computer Won’t Start After Windows Update”) or using the “Hotfix uninstall” utility from the MSDaRT.
So, we have covered common scenarios of how to uninstall updates on Windows computers.
Сброс центра обновления Windows 10
При возникновении ошибок при загрузке или установке обновлений чаще всего помогает сброс центра обновления Windows 10. В данной статье мы опишем стандартные методы, как сбросить Центр обновления и решить проблемы с обновлениями.
Существует несколько известных способов сбросить Центр обновления Windows 10:
- Используя средство устранения неполадок
- Удаление папки SoftwareDistibution
- Выполнение скрипта
Разберем данные способы по порядку.
Средство устранения неполадок
Помогает в 2 случаях из 10 и может указывать на ошибки хранилища компонентов и самого ЦО, без наличия таковых. Не самое лучше средство решение проблемы, но иногда помогает. Редко, но помогает. Учитывая заявление Microsoft, что все траблшутеры (а именно так называются эти средства устранения неполадок) совершенствуются и «учатся на ошибках», этого не было замечено за всё время использования системы.
Если Вам требуется запустить средство устранения неполадок Центра обновления Windows, пройдите в Панель управления — Устранение неполадок — Все категории и запустите нужное средство от имени Администратора.
Удаление папки SoftwareDistibution
Решает 5 из 10 проблем с обновлениями. SoftwareDistibution – папка, где хранятся загруженные обновления, кэш Центра обновления и его логи. Удаление данной папки решает вопросы ошибок установки, но не загрузки обновлений.
Папка располагается по пути C:\Windows\SoftwareDistribution
Перед тем, как её удалить, необходимо остановить службу Центр обновления Windows или выполнить следующую команду в Командной строке от имени Администратора:
Выполнение скрипта
Универсальное средство для решения проблем обновлений, как для Windows 10, так и для Windows 8.1 и 7. Решает 8 из 10 проблем связанных с центром обновления. Есть 2 варианта использования скрипта:
Загрузить скрипт с форума Microsoft
Пройдите на страницу загрузки Technet Microsoft или загрузите архив по прямой ссылке. Распакуйте архив и запустите скрипт ResetWUEng от имени Администратора.
Первая страница предостерегает о возможных последствиях (скрипт умеет не только сбрасывать ЦО), для согласия нажмите клавишу «Y». На выбор будет предложено 17 действий, но нам нужно только одно, под цифрой 2. Нажимаем 2 и клавишу Enter. На экране будут отображаться выполняемые процессы и по завершению возникнет окно в 17 вариантами. Выберите 17 для перезагрузки и нажмите Enter.
Примечание: Некоторые антивирусы могут «ругаться» на данный скрипт, но открыв Блокнотом, Вы можете удостовериться, что ничего подозрительного в его содержимом нету.
Создание скрипта самостоятельно
Сделать скрипт для сброса Центра обновления Windows довольно просто, нам потребуется для начала открыть Блокнот (notepad.exe) и скопировать туда данный текст:
Затем, сохраните данный файл. При сохранении укажите Тип файла: Все файлы, а в названии укажите «название».bat (например, wu.bat), что бы этот файл был исполняемым и можно было воспроизвести скрипт.
После сохранения откройте файл от имени Администратора и дождитесь окончания процедуры, после чего перезагрузите компьютер.
Мы надеемся, что данная инструкция была Вам полезна и помогла решить вопрос Центра обновления Windows.
Рекомендованные публикации
Все пользователи сталкивались с тем, что загрузка или распаковка крупных обновлений занимает слишком много времени. Порой не дождавшись окончания, устройство…
13 февраля – вторник обновлений Windows 10. Все актуальные версии Windows 10 получили накопительные обновления, где были исправлены баги и…
В случае с обновлением операционной системы Windows 10 может возникать ошибка 0x80070013. Ошибка сопровождается описанием: «С установкой обновления возникли некоторые проблемы,…
Добавить комментарий Отменить ответ
Этот сайт использует Akismet для борьбы со спамом. Узнайте как обрабатываются ваши данные комментариев.
Сброс настроек службы обновлений 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, когда центр обновлений перестает загружать новые обновления или пишет, что при установке обновления возникают ошибки.
Итак, по порядку о том, что делает скрип:
- Остановка службы Windows Update (Центр обновлений Windows), BITS и службы криптографии:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
taskkill /im wuauclt.exe /f - Удаление служебных файлов qmgr*.dat в каталоге %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\:
Del «%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat» - Переименовываем служебные каталоги, в которых хранятся конфигурационные файлы и кэш обновлений (в случае необходимости их можно будет использовать как резервные копии). После перезапуска службы обновления, эти каталоги автоматически пересоздадутся:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak - Удаление старого журнала windowsupdate.log
del /f /s /q %windir%\windowsupdate.log - Сброс разрешений на службы 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) - Перерегистрация файлов системных динамических библиотек (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.dllregsvr32.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 - Сброс параметров Winsock netsh winsock reset
- Сброс параметров системного прокси netsh winhttp reset proxy
- Опционально. При использовании локального сервера 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 - Запуск остановленных служб:
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 - Опционально. В некоторых случая требуется установить/переустановить последнюю версию агента 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. Рассмотрим, как им пользоваться.
- Скачайте архив ResetWUEng.zip здесь (https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc) и распакуйте его;
- Запустите файл ResetWUEng.cmd с правами администратора;
- Скрипт определит вашу версию ОС (в моем примере это Windows 10) и предложит 18 различных опций. Некоторые из них напрямую не относятся к сбросу настроек агента WU, но могут быть полезны для исправления различных неисправностей в Windows (проверка диска chkdsk, исправление ошибок в образе Windows, сброс Winsock, очистка временных файлов и т.д.);
- Для сброса настроек Windows Update как правило достаточно использовать опцию 2 —ResetstheWindowsUpdateComponents (Сбросить компоненты службы обновления Windows). Нажмите 2 и Enter;
- Скрипт автоматически выполнит все действия, которые мы описали выше при выполнении ручного сброса агента обновлений Windows из командной строки.