Windows Update error
0x80240022 WU_E_ALL_UPDATES_FAILED
Every update in the batch failed. The code is a summary: the reason is in the error logged for each update.
Where you will see it
- Windows Update
- Deployment logs
Likely causes, most common first
- A shared cause such as a damaged component store, no network or low disk space.
How to fix it, in this order
Start with the first fix and check the result before moving on; each one says how to tell that it worked.
1. Repair the Windows component store and system files (easy)
- Right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin), and say Yes to the prompt.
- Run: DISM /Online /Cleanup-Image /RestoreHealth (it can sit at 20% or 62% for several minutes; let it finish).
- Then run: sfc /scannow
- Restart and try the update or install again.
It worked if: DISM ends with "The restore operation completed successfully" and sfc reports no integrity violations, or that it repaired them.
2. Reset the Windows Update download cache (moderate)
- Right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin), and say Yes to the prompt.
- Run: net stop wuauserv and then net stop bits
- Run: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
- Run: net start bits and then net start wuauserv
- Open Settings, Windows Update, and press Check for updates.
It worked if: Windows Update downloads the update again from the start and the error does not come back.
What Microsoft's documentation says
Microsoft's own wording for this code, quoted from the page named under each quote. The plain-English explanation and the fixes above are ours.
“Operation failed for all the updates.”
“Multiple root causes for this error.”
Microsoft names security software blocking folders such as SoftwareDistribution as the most common cause, found by reading CBS.log.
The same code, written other ways
Search a log or a forum for any of these; they are all this code.
- 0x80240022 (what Windows Update, DISM and installers print)
- -2145124318 (signed decimal, as PowerShell and some logs show it)
- 2149842978 (unsigned decimal)
How the code is put together
Read from the bits as Microsoft's [MS-ERREF] Windows Error Codes specification lays them out.
- Severity: 1 (failure) (bit 31)
- Customer bit: 0 (Microsoft) (bit 29)
- NTSTATUS inside: 0 (bit 28)
- Facility: 36 (FACILITY_WINDOWSUPDATE) (bits 16-26)
- Code: 34 (0x22) (bits 0-15)
Codes that often come with it
- 0x80240034 WU_E_DOWNLOAD_FAILED
The update failed to download, so there was nothing to install.
More than one code in your log?
Paste the whole CBS, DISM or Windows Update log into the decoder. It lists every code in it, in order, with the line it was on. Decoded in your browser; nothing is sent.
Open the error code decoder →Helping someone with the same problem?
Send them this page, or link to it from a forum reply or your own site.