Quick answer: Windows Update error codes point to the cause of a failed update. Note the code and the KB number, repair the component store with DISM and sfc /scannow, reset the Windows Update components, and install the KB manually from the Update Catalog if it still fails.
| Step | What to do |
|---|---|
| Step 1 | Repair the Component Store With DISM and SFC |
| Step 2 | Reset the Windows Update Components |
| Step 3 | Check the Update Source on Managed PCs |
| Step 4 | Install the Update Manually |
Windows Update error codes are the most useful thing on the screen when an update fails, and most people ignore them. The same handful of codes keep showing up on PCs and servers, and they usually point to one of three causes: a damaged component store, a missing repair source, or a problem with the update source itself. This guide is the checklist I work through, with links to the detailed fixes for each common error.
Start With the Exact Error Code and the KB Number
Before you run any repair, write down two things: the full error code (for example 0x800f081f) and the KB number of the update that failed. The code tells you where to look, and the KB lets you search for known issues and download the package manually later. You can read the history from PowerShell:
Get-WindowsUpdateLog
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10Code language: JavaScript (javascript)Get-WindowsUpdateLog builds a readable WindowsUpdate.log on the desktop. For component store problems, the real detail lives in C:\Windows\Logs\CBS\CBS.log and C:\Windows\Logs\DISM\dism.log.

Common Windows Update Error Codes and What They Usually Mean
The list below is a quick reference. Treat each meaning as the usual cause, not a guarantee, and always confirm in the logs. Microsoft also publishes a full Windows Update error code reference.
- 0x800f081f: the source files could not be found, so DISM cannot repair a component. See how to fix 0x800f081f with DISM.
- 0x800f0993 (and 0x800f0989): a cumulative update fails partway. For the November problem Microsoft confirmed, read KB5132061 install error 0x800f0993.
- 0x80244022: the client got an HTTP 503 from the update server. On managed networks this is a WSUS problem, covered in SCCM scan failed 0x80244022.
- 0x80073712: a file the update needs is missing or the component store is damaged. Start with DISM.
- 0x80070002: file not found. Often a corrupted download cache, so reset the Windows Update components.
- KB5121794 completes but nothing changes: this is a version or policy issue rather than a corrupt install. See KB5121794 not installing.
Step 1: Repair the Component Store With DISM and SFC
For any code that points at corruption, repair the component store first. Run these from an elevated Command Prompt, in this order:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannowIf RestoreHealth stops with 0x800f081f, Windows could not find a source for the repair. In that case point DISM at a matching install image, for example DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:1 /LimitAccess. The image must match the installed edition and build, and the full walkthrough is in the 0x800f081f guide. Microsoft documents the command in Repair a Windows image.
Step 2: Reset the Windows Update Components
If the component store is healthy but updates still fail, the download cache may be damaged. Stopping the services and renaming the two cache folders makes Windows rebuild them. Run this from an elevated Command Prompt:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserverCode language: CSS (css)Renaming instead of deleting is deliberate: if something goes wrong you still have the old folders. Reboot, check for updates again, and delete the .old folders only after a few successful update cycles.
Step 3: Check the Update Source on Managed PCs
On domain-joined PCs the problem is often not the PC at all. Group Policy or an update management tool decides where the client downloads updates, and a wrong setting produces errors that look like local corruption. Check which source the client uses and whether it is reachable. If your clients scan against WSUS or Configuration Manager, a failing server breaks every machine at once, which is a useful sign that the endpoints are fine. Also check the repair source policy mentioned in the 0x800f081f guide, because it affects DISM as well as feature installs.
Step 4: Install the Update Manually
When the automatic path keeps failing, download the exact KB from the Microsoft Update Catalog and install it yourself. For a standalone .msu run wusa.exe, and for a .cab use DISM:
DISM /Online /Add-Package /PackagePath:C:\Temp\update.cabMake sure the package matches your Windows version and architecture, and install any prerequisite update first. The KB5121794 guide shows this for the Windows 11 26H2 enablement package, and the 25H2 to 26H2 update guide covers the normal route.
When Nothing Works: In-Place Upgrade Repair
If DISM, a component reset and a manual install all fail, an in-place upgrade (running setup from a matching ISO and keeping apps and files) rebuilds the operating system files without a wipe. It takes longer than the other steps, so I only use it after the logs show that the component store cannot be repaired.
What I Do Not Recommend
- Deleting the
SoftwareDistributionfolder while the services are running. - Downloading random “Windows Update fixer” tools instead of reading the log.
- Installing an update from an unofficial site. Use the Microsoft Update Catalog.
- Repeating the same retry ten times. If it fails twice with the same code, the cause is not going to change.
Read more: Windows Update Error 0x800f081f? The Proven DISM Fix
Read more: KB5132061 Fails to Install? Proven Fix for Error 0x800f0993
What is the first thing I should do when Windows Update fails?
Note the exact error code and the KB number, then read the CBS and WindowsUpdate logs. The code and the log narrow the cause far faster than a random repair.
Should I run DISM or SFC first?
Run DISM first, because it repairs the component store that SFC relies on. Then run sfc /scannow to repair system files.
Is it safe to rename the SoftwareDistribution folder?
Yes, when the Windows Update, Cryptographic, BITS and Windows Installer services are stopped first. Windows rebuilds the folder, and the old copy stays available until you delete it.
Why does DISM RestoreHealth fail with 0x800f081f?
Windows cannot find the source files it needs. Provide a matching install.wim with the /Source option and /LimitAccess, and check the repair source Group Policy on managed PCs.
Where do I download a Windows update manually?
Use the Microsoft Update Catalog, search for the KB number and choose the package that matches your Windows version and architecture.






