How To Fix Repair Windows Update Components
If the Windows Update service is non working properly, updates are not downloaded or installed, then the easiest and most effective style to solve the problem with the Windows Update service is to restore its original settings. In this article, we'll evidence you how to reset the Windows Update agent and service configuration.
Contents:
- Using Windows Update Troubleshooter to Fix Update Issues
- Resetting Windows Update Client Using PowerShell
- Using Reset Windows Update Tool
- Reset Windows Update Settings Using Command Prompt
Usually, to debug Windows Update errors, an ambassador needs to clarify the error codes in the %windir%\WindowsUpdate.log file (in Windows x you lot can become the WindowsUpdate.log this way). The number of possible errors that an ambassador may encounter when analyzing the Windows update log is dozens (a complete list of Windows Update errors) and the procedure of resolving them is non-trivial. To avert undue efforts and waste no fourth dimension, it'southward much easier to completely reset the Windows Update service and amanuensis to the default state.
Using Windows Update Troubleshooter to Fix Update Bug
Earlier proceeding to reset the configuration of Windows Update, we strongly recommend that yous commencement try a simpler and quite effective tool to automatically prepare problems in the Windows Update service using the built-in Windows Update Troubleshooter.
Windows Update Troubleshooter is already built into the modernistic Settings panel in Windows 10 and 11. For previous versions of Windows, you volition have to download information technology manually:
- Windows xi — Settings -> Organization -> Troubleshooter -> Other Troubleshooter -> Windows Update;
- Windows x – wu10.diagcab (https://aka.ms/wudiag ) or run the local version of the tool: Commencement -> Settings -> Updates and Security -> Troubleshoot -> Boosted Troubleshooters-> Windows Updates (Resolve problems that prevent you from updating Windows);
For quick access the Windows troubleshooting tools, you tin apply the ms-settings URI command:
ms-settings:troubleshoot
- Windows 7 and Windows 8.1 — WindowsUpdate.diagcab (https://aka.ms/diag_wu).
Wait for the Windows Update Troubleshooter to scan your arrangement and endeavour to automatically set up any errors in the Windows Update and related components.
In my example, corruption in the Windows Update database was constitute and stock-still. Subsequently that, it remains to restart the computer and endeavor to scan for updates. If updates are not downloaded or installed, continue to the next step.
Resetting Windows Update Client Using PowerShell
You lot tin utilise the PSWindowsUpdate PowerShell module to reset the Windows Update agent and service.
Install the module on your figurer from the PSGallery script gallery:
Install-Module -Name PSWindowsUpdate
Enable execution of PowerShell scripts:
Set-ExecutionPolicy –ExecutionPolicy RemoteSigned -forcefulness
Run the command:
Reset-WUComponents –verbose
The Reset-WUComponents control stops services, re-registers DLLs, and cleans upward the C:\Windows\SoftwareDistribution folder, etc. The full log of deportment is bachelor.
VERBOSE: Background Intelligent Transfer Service (BITS) VERBOSE: Windows Update (wuauserv) VERBOSE: Application Identity (appidsvc) VERBOSE: Cryptographic Services (cryptsvc) Step two: Delete the qmgr*.dat files Step iii: Fill-in 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 erstwhile Windows Update logs VERBOSE: Deleting the C:\Windows\WindowsUpdate.log files. Step 5: Reset Windows Update services VERBOSE: Reset $.25 service VERBOSE: Reset Windows Update service Step half-dozen: Reregister dll'south VERBOSE: regsvr32.exe / s atl.dll VERBOSE: regsvr32.exe / southward 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 / due south scrrun.dll VERBOSE: regsvr32.exe / s msxml.dll VERBOSE: regsvr32.exe / south msxml3.dll VERBOSE: regsvr32.exe / s msxml6.dll VERBOSE: regsvr32.exe / s actxprxy.dll VERBOSE: regsvr32.exe / s softpub.dll VERBOSE: regsvr32.exe / south wintrust.dll VERBOSE: regsvr32.exe / s dssenh.dll VERBOSE: regsvr32.exe / s rsaenh.dll VERBOSE: regsvr32.exe / south gpkcsp.dll VERBOSE: regsvr32.exe / due south sccbase.dll VERBOSE: regsvr32.exe / s slbcsp.dll VERBOSE: regsvr32.exe / south cryptdlg.dll VERBOSE: regsvr32.exe / s oleaut32.dll VERBOSE: regsvr32.exe / southward ole32.dll VERBOSE: regsvr32.exe / s shell32.dll VERBOSE: regsvr32.exe / southward 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 / due south wups.dll VERBOSE: regsvr32.exe / due south wups2.dll VERBOSE: regsvr32.exe / s wuweb.dll VERBOSE: regsvr32.exe / s qmgr.dll VERBOSE: regsvr32.exe / south qmgrprxy.dll VERBOSE: regsvr32.exe / southward wucltux.dll VERBOSE: regsvr32.exe / s muweb.dll VERBOSE: regsvr32.exe / south wuwebv.dll Step 7: Reset WinSock VERBOSE: netsh winsock reset Pace eight: Reset Proxy VERBOSE: netsh winhttp reset proxy Footstep nine: Start Windows Update services VERBOSE: Cryptographic Services (cryptsvc) VERBOSE: Application Identity (appidsvc) VERBOSE: Windows Update (wuauserv) VERBOSE: Groundwork Intelligent Transfer Service ($.25) Step 10: Showtime Windows Update services VERBOSE: wuauclt /resetauthorization /detectnow
Search for updates in the Settings panel, or look for available Windows updates using PowerShell:
Get-WUList
Using Reset Windows Update Tool
Reset Windows Update Tool is some other useful and simple tool for resetting Windows Update settings. This script used to exist available on TechNet. The writer currently maintains a repository on GitHub (https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool). Allow's consider how to use it.
A compiled wureset.exe file (C++) or a regular batch script is offered for download. I prefer to use cmd script.
- Download the ResetWUEng.zip and extract it;
- Run the ResetWUEng.cmd as an administrator;
- The script volition detect your OS version (in my example, it is Windows 10) and will offering 18 different options. Some of them are not directly related to the reset of WU agent settings, but tin exist useful for fixing various Windows issues (checking the deejay with the chkdsk, repairing the Windows image with DISM, resetting Winsock, clearing temporary files, etc.);
- To reset the Windows Update, it is usually sufficient to utilize pick two – Resets the Windows Update Components. Press ii and Enter;
- The script will automatically perform all the actions that we described beneath when performing a manual reset of the Windows Update Agent from the command line;
You can see the script performed actions past opening the ResetWUEng.cmd file in any text editor and examining its contents. For example, option 2 sends you to the :components function.
- Afterwards the completion of the Reset Windows Update Tool script, restart your figurer and check for new updates.
The ResetWUEng.cmd script is universal and suitable for all Windows versions starting from Windows XP and up to Windows 11.
Reset Windows Update Settings Using Command Prompt
The process of resetting the Windows Update amanuensis and service configuration consists of several steps. All the described operations are performed in the elevated command prompt. I added all commands in the single bat file.
Using this script, you can completely reset the configuration of Windows Update and articulate the local update enshroud. The script is applicable for both workstations with Windows xi/10/eight.i/7 and Windows Server 2022/2019/2016/2012 R2/2008 R2. This script helps to eliminate most typical Windows Update errors when Windows stops downloading new updates or errors appear during the update installation.
Make sure the Windows Update settings on your computer are not configured using domain or local group policies. Y'all can apply the gpresult
tool or rsop.msc
to display the resulting GPO settings. Or you can reset local GPO settings according to this guide.
Let's consider what this script does stride by stride:
- End Windows Update, BITS, and cryptographic services:
net stop bits
net cease wuauserv
net stop appidsvc
cyberspace stop cryptsvc
taskkill /im wuauclt.exe /f
- Delete service files qmgr*.dat from the binder %ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\:
Del "%ALLUSERSPROFILE%\Awarding Data\Microsoft\Network\Downloader\qmgr*.dat"
- Rename organisation folders, in which configuration files and update enshroud are stored (if necessary, they can be used as backups). After restarting the update service (
wuauserv
), these directories will be automatically recreated:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak - Delete the old windowsupdate.log file:
del /f /due south /q %windir%\windowsupdate.log
- Reset the permissions for $.25 and Windows Update services (if service permissions accept been changed):
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)Southward:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
sc.exe sdset trustedinstaller D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;And so)(A;;CCLCSWRPWPDTLOCRRC;;;SY)Southward:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD)
- Re-register the files of system dynamic libraries (DLLs) related to BITS and Windows Update:
cd /d %windir%\system32
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /south shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /due south msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /southward wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /due south sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /south cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /southward shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /south wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /south wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /southward wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /due south muweb.dll
regsvr32.exe /s wuwebv.dll
- Reset Winsock settings:
netsh winsock reset
- Reset organization proxy settings:
netsh winhttp reset proxy
- Optional. When using a local WSUS server, you tin can also reset the current binding of a client to the WSUS server past deleting the following parameters in the registry central HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate:
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /5 AccountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /five SusClientId /f
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /5 TargetGroup /f
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /five WUServer /f
REG DELETE "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /five WUStatusServer /f - Get-go the previously stopped services:
sc.exe config wuauserv start= auto
sc.exe config bits start= delayed-auto
sc.exe config cryptsvc get-go= auto
sc.exe config TrustedInstaller start= need
sc.exe config DcomLaunch showtime= auto
net outset $.25
net start wuauserv
net start appidsvc
net start cryptsvc -
Optional. In some cases, you'll need to install/reinstall the version of Windows Update Agent (WUA). You can bank check the current Windows Update Agent Wuaueng.dll file version on your estimator with PowerShell:
((Get-Item $Env:windir\system32\Wuaueng.dll).VersionInfo).ProductVersion
You can download the latest version of Windows Update agent hither: https://back up.microsoft.com/en-united states/kb/949104.
Windows 8.1 –7.9.9600
Windows 8 –seven.eight.9200.16693
Windows 7 –vii.6.7600.256
Use the following commands to forcefulness reinstall the Windows Update Agent: Windows 7 x86:WindowsUpdateAgent-7.six-x86.exe /quiet /norestart /wuforce
Windows 7 x64:WindowsUpdateAgent-7.6-x64.exe /placidity /norestart /wuforce
At present you only have to restart your computer and run synchronization with Windows Update or WSUS.
wuauclt /resetauthorization /detectnow
And so go to the Windows Update and make certain that there are no errors while checking, downloading, and installing the updates.
The reset_windows_update_agent.bat script can exist downloaded following this link reset_windows_update_agent.naught (options 9 and 11 are not included in the script since they are optional). Download the script, extract it, and run as an administrator.
If Windows updates are downloaded and installed correctly, you lot tin can remove the fill-in folders:
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
If all else fails, endeavour to manually download and install the latest cumulative update for your Windows version from the Microsoft Update Itemize.
Source: http://woshub.com/reset-windows-update-agent-and-service-to-default/
Posted by: lathamwormse.blogspot.com
0 Response to "How To Fix Repair Windows Update Components"
Post a Comment