Use this when Windows Update fails with an error code and you need a structured repair path.
Windows Update Troubleshooting
Troubleshoot Windows Update with the error code, Get-WindowsUpdateLog, the update services' status, free disk space, DISM RestoreHealth, resetting SoftwareDistribution and catroot2, and WSUS or proxy connectivity.
1. Error code → look up.
2. Space, services, time, proxy.
3. DISM /Online /Cleanup-Image /RestoreHealth then sfc /scannow.
4. Logs: WindowsUpdate.log, CBS.log.
5. Reset components only after the above.
scan → download → install → reboot; failure point identified
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-WindowsUpdateLogPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify Windows Update by package state, reboot completion and the original compliance check Verify boundary
Capture the Windows Update KB/package identity, source, scan result and installation result/error. After remediation expect the target update/package to report Installed or the appropriate superseded/not-applicable state, with no pending reboot when finalization requires restart and no new CBS/WU error for the retest. Verify OS build/package inventory after reboot and repeat the original compliance or vulnerability check that required the update. A successful download shows content transfer only, but it does not show servicing completed or the running OS uses the updated binaries.
Step 2 Branch Windows Update failures at scan, content transfer, servicing and reboot finalization Narrow the fault
If Windows Update finds no expected update, verify effective update source/policy and scan result before touching the download cache. If the update is detected but download fails, inspect proxy/TLS/BITS/Delivery Optimization and the specific error code. If download completes but installation fails, move to CBS/DISM/component-store and package applicability evidence; if installation succeeds but remains pending, inspect reboot/pending servicing rather than reinstalling. If only one machine fails, compare policy, free space and component-store state with a known-good peer. Cache reset should follow captured evidence, not precede it.
Step 3 Common mistakes Narrow the fault
- Not using
Get-WindowsUpdateLogto read the log.
- Start from the error code.
- Low disk space breaks updates.
- A damaged component store breaks updates.
Get-WindowsUpdateLog— merge update ETL logs to a text fileGet-HotFix | Sort InstalledOn -Desc | Select -First 10— installed updatesGet-Service wuauserv,bits,cryptsvc,trustedinstaller— update servicesGet-WinEvent -LogName Microsoft-Windows-WindowsUpdateClient/Operational -MaxEvents 30— update client eventsUsoClient StartScan— trigger a scan (client)
ReferenceWhy it matters1 section · depth on demand
Windows Update crosses scan source, applicability, download, servicing and reboot state
Windows Update Troubleshooting separates update-source discovery and scan results from content download and Component-Based Servicing installation. WSUS/WUfB policy, proxy/TLS, Delivery Optimization/BITS, Windows Update service, component store health and pending reboot state are distinct boundaries. An update can be applicable but not downloaded, downloaded but fail servicing, or installed but pending restart. Update history is a summary, not the complete servicing trace. Record KB/update identity, source/policy, error code and reboot state before clearing caches or resetting services.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
Windows Update troubleshooting resolves updates that fail to download, install or that roll back.
Get-WindowsUpdateLog # converts ETW logs to WindowsUpdate.log
Get-WinEvent -LogName 'Microsoft-Windows-WindowsUpdateClient/Operational' -MaxEvents 30
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5
DISM /Online /Cleanup-Image /RestoreHealth
Stop-Service wuauserv, bits; Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.old; Start-Service wuauserv, bits
| Error/symptom | Typical cause |
|---|---|
| 0x80070002/0x80070003 | Missing files, corrupt SoftwareDistribution |
| 0x800f081f / 0x800f0922 | Component store corruption, missing source, reserved partition space |
| 0x80240437 / connection errors | Proxy, firewall, WSUS/WUfB configuration |
| Install then rollback | Driver/application incompatibility, CBS log shows failing package |
| Not offered | Policy (deferrals, target version), WSUS approvals |
Check C:\Windows\Logs\CBS\CBS.log for the failing component when installation fails.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Update → Windows Update Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/deployment/update/ · confidence 94%