An update that fails, rolls back or sits at the same percentage for hours is rarely a sign of a broken PC. Most of the time Windows Update just needs a restart, a repair of its own files or a fresh download cache. Work through the steps in this order and stop when the update installs. First check the update's page on this site: its Known issues section may already name your problem (see known issues).
1. Run the troubleshooter
- Restart the PC and try Check for updates again.
- On Windows 11 open Settings › System › Troubleshoot › Other troubleshooters and select Run next to Windows Update. On Windows 10 it is under Update & Security › Troubleshoot › Additional troubleshooters.
- Restart when it finishes and check for updates again.
You can jump straight to the page with ms-settings:troubleshoot (press Win + R).
2. Repair Windows system files
Open Command Prompt as administrator (right-click, then Run as administrator) and run these two commands, in this order, then restart:
> DISM.exe /Online /Cleanup-Image /RestoreHealth> sfc /scannow
DISM repairs the component store, the library Windows takes its update files from. SFC then replaces damaged system files from it. Microsoft advises running DISM first. If Windows Update itself is broken, DISM can read a healthy copy of Windows instead: add /Source:<path> /LimitAccess.
3. Reset the update cache (IT admins and advanced users)
Stop the services, rename the cache folders so Windows rebuilds them, then start the services again:
> net stop wuauserv> net stop bits> net stop cryptsvc> ren %systemroot%\SoftwareDistribution\DataStore DataStore.bak> ren %systemroot%\SoftwareDistribution\Download Download.bak> ren %systemroot%\system32\catroot2 catroot2.bak> net start cryptsvc> net start bits> net start wuauserv
Nothing personal is deleted. If the same error comes back, the log is %windir%\Logs\CBS\CBS.log.
What the common error codes mean
| Code | Meaning | What to try |
|---|---|---|
0x80070002 |
"The system cannot find the file specified." | Step 3, then step 2. |
0x800f081f |
Source files missing: the component store is damaged. | Step 2. |
0x800f0922 |
Installation failed and was rolled back. | Check CBS.log; Microsoft documents a permissions cause on Windows Server 2016 (the spp folder). |
0x80073712 |
"The component store has been corrupted." | Step 2. |
0x80240034 |
The update failed to download. | Check the connection or proxy, then step 3. |
If nothing works
You can install the update by hand or, if a recent update caused the trouble, uninstall it. Find the KB number in update history.
Sources
Edited by the site editor. Written with AI from Microsoft's own documents, checked by rules and a second AI. How we work · Report a mistake