Windows Update
Reset Windows Update components
Clear the Windows Update download cache and catalog database when updates are stuck downloading, fail repeatedly or report a corrupt database.
Use this when updates stay stuck at a percentage, fail again right after downloading, or report database errors. If DISM reports corruption, repair the image first — resetting the cache doesn't fix a damaged component store.
What this does
C:\Windows\SoftwareDistributionholds downloaded updates and the Windows Update database.C:\Windows\System32\catroot2holds the signature catalog database used by the Cryptographic service.
Renaming them makes Windows rebuild both. Installed updates are not affected; the update history list in Settings starts empty, and pending downloads start again.
Steps
Run in an elevated PowerShell window:
1# Stop the services that keep the folders open2Stop-Service -Name wuauserv, bits, cryptsvc, msiserver -Force3 4# Keep the old folders until the next update succeeds5Rename-Item -Path "$env:windir\SoftwareDistribution" -NewName SoftwareDistribution.old6Rename-Item -Path "$env:windir\System32\catroot2" -NewName catroot2.old7 8Start-Service -Name msiserver, cryptsvc, bits, wuauservIf a rename fails with "access denied", a service restarted on its own — run the Stop-Service line again and retry.
Then check for updates again. Once an update installs, delete the .old folders.
If it still fails
- Note the error code and look it up in the error library.
- Check
Get-WindowsUpdateLog(Windows 10/11, Server 2016+) — it writes a readableWindowsUpdate.logto the desktop. - On WSUS-managed machines, confirm the client can reach the WSUS server and that the update is approved.
References
- Windows Update troubleshooting — Microsoft Learn
- Fix Windows Update errors — Microsoft Learn