You need an administrator account and, for the DISM steps, an internet connection or a Windows ISO of the same version. Back up important files if the PC has had disk errors. If Windows cannot start, see the startup guide.
Work through these checks
0 of 7 complete01Restart and run the Windows Update troubleshooter
A pending restart from an earlier update can leave the store temporarily inconsistent.
- Restart the PC (use Restart, not Shut down) and try Windows Update again.
- On Windows 11, open Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Update. On Windows 10, use Settings > Update & Security > Troubleshoot > Additional troubleshooters.
The update installs.
If it does not helpIf it fails again with 0x80073712, repair the store in step 2.
02Repair the component store with DISM
This is Microsoft's documented fix for this code: DISM downloads clean copies of damaged files from Windows Update.
- Right-click Start and open Terminal (Admin).
- Run DISM.exe /Online /Cleanup-image /Restorehealth and wait; it can stay at one percentage for several minutes.
- Run sfc /scannow.
- Restart and run Windows Update again.
DISM reports "The restore operation completed successfully" and the update installs.
If it does not helpIf DISM fails, often with 0x800f081f, it could not get clean files; use installation media in step 3.
03Repair it from Windows installation media
Microsoft documents using a working Windows installation or installation files as the repair source when Windows Update cannot provide them.
- Download the ISO for your Windows version and language from Microsoft's software download page, right-click it and choose Mount. Note its drive letter, for example D:.
- Run dism /Get-WimInfo /WimFile:D:\sources\install.wim and note the Index of your edition (for example Windows 11 Pro).
- Run DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:6 /LimitAccess, replacing 6 with your index.
- Run sfc /scannow, restart and try Windows Update.
The ISO must be the same Windows version (for example 24H2) and language as the installed system.
DISM completes the repair using the files from the ISO.
If it does not helpIf the folder has install.esd instead of install.wim, use that file name and ESD: instead of WIM:. The 0x800F081F guide on this site covers this repair in more detail.
04Clear the Windows Update cache
Damaged downloaded update files and update metadata can keep the error coming back after the store is repaired.
- Search for cmd, right-click Command Prompt and choose Run as administrator. Run net stop wuauserv, net stop bits and net stop cryptsvc.
- Run ren %systemroot%\SoftwareDistribution\Download Download.bak and ren %systemroot%\SoftwareDistribution\DataStore DataStore.bak.
- Run ren %systemroot%\system32\catroot2 catroot2.bak.
- Run net start cryptsvc, net start bits and net start wuauserv, then check for updates.
Use Command Prompt for these commands; %systemroot% does not work in PowerShell.
Windows Update downloads the update again from scratch.
If it does not helpThe update history in Settings may look empty afterwards; installed updates are not affected.
05Check the drive and free space
Disk errors are a common reason the store gets damaged, and updates need free space to install.
- In Terminal (Admin), run chkdsk C: /scan. If it reports problems, run chkdsk C: /f and allow it to run at the next restart.
- If C: is nearly full, free up space in Settings > System > Storage > Cleanup recommendations.
No file system errors and enough free space.
If it does not helpIf the drive reports errors repeatedly, back up and check its health in the maker's tool.
06Install the update manually
Installing the update package directly can work even when the automatic installation fails.
- In Settings > Windows Update > Update history, note the KB number of the failed update.
- Search for that KB number on the Microsoft Update Catalog (catalog.update.microsoft.com) and download the version for your system (usually x64).
- Run the downloaded .msu file and restart.
Download updates only from Microsoft.
The update installs and appears in the update history.
If it does not helpIf the manual installation fails with the same code, go to step 7.
07Repair Windows with an in-place upgrade
An in-place upgrade replaces the whole component store with a clean copy and keeps your files and apps.
- Mount the Windows ISO from step 3.
- Run setup.exe from it and choose to keep personal files and apps.
- After it finishes, run Windows Update.
Back up important files before starting.
Windows is reinstalled over itself and updates install normally.
If it does not helpIf even setup fails, back up your files and do a clean installation.
Possible causes
- Damaged files in the component store (WinSxS)
- An earlier update that was interrupted or did not finish
- Power loss or a forced shutdown during an update
- File system errors on the system drive
- Security software removing or locking system files
Was this helpful?
Your progress is saved on this device.