How to Fix Windows Update Error 0x80073712 [Fix]

How to Fix Windows Update Error 0x80073712 [Fix]

Windows Update error 0x80073712 means one thing: a file Windows Update needs is damaged or missing from the component store, the part of Windows that holds the clean copies updates are built from. The fix is not to keep retrying the update, and it is not to jump straight to resetting Windows Update. Repair the component store first with DISM RestoreHealth, then repair the system files with SFC, and only then reset Windows Update if the update still fails. This guide covers those steps in that order, including what to do when RestoreHealth itself cannot find the files it needs.

The whole repair uses tools already built into Windows, and none of the steps below deletes your files or apps. The commands were checked against Microsoft documentation current for Windows 11, including version 26H2.

What error 0x80073712 means

Microsoft names this code ERROR_SXS_COMPONENT_STORE_CORRUPT, and describes it as the component store being in an inconsistent state. The component store lives in the C:\Windows\WinSxS folder: a library of clean, known good parts that every Windows update is assembled from. When one of those parts is damaged or missing, Windows Update cannot build the update, so it stops and shows 0x80073712.

That is why retrying the same update does not help. The update is not failing because of a bad download or a busy server. A part it needs is missing or unreadable, and pressing Check for updates again asks Windows to build the same update from the same broken library.

The damage usually follows an update that was interrupted, a PC that lost power during an update, or a disk problem that wrote a bad copy of a file. Whatever caused it, the repair is the same. Microsoft documents this exact sequence in its guide to fixing Windows Update corruptions, which names 0x80073712 in its table of corruption errors and prescribes DISM first, then SFC. See Microsoft Learn: Fix Windows Update corruptions and installation failures.

The fix order, and why it is this way

Most guides for this error list the same tools in a different order, or jump straight to a reset script. The order below follows how Windows itself is put together: each step only works properly because the step before it ran first.

DISM repairs the component store. SFC repairs protected system files, and it takes its replacement files from the component store. If the store is still damaged when SFC runs, SFC has nothing good to copy from, so it reports files it could not fix and the update still fails. Running DISM first gives SFC a clean source to work from, and it is also the order Microsoft gives in its System File Checker instructions: DISM first, then sfc /scannow.

Resetting Windows Update comes last, not first, because it only clears downloaded update files and the local update database. A fresh download cache does not repair a damaged component store, so resetting first just downloads the same update and hits the same broken part again. The Windows Update troubleshooter is the same: useful for general update trouble, but it does not repair a damaged component store.

StepToolWhat it repairsRun it when
1DISM RestoreHealthThe component store, the source of clean filesFirst, always
2DISM with an ISO sourceThe same store, using local files instead of Windows UpdateOnly if RestoreHealth cannot find clean files
3SFC scannowProtected system files, copied from the repaired storeAfter DISM reports success
4Windows Update resetThe download cache and the signature foldersOnly if the update still fails after DISM and SFC
5Reinstall nowThe Windows installation itself, keeping apps and filesLast, when nothing above fixed it
Flowchart of the fix order for Windows Update error 0x80073712: DISM RestoreHealth repairs the component store first, then SFC repairs system files, then reset Windows Update, then Reinstall now as the last step

Step 1: Repair the component store with DISM RestoreHealth

DISM, short for Deployment Image Servicing and Management, is the built in Windows tool that services and repairs the Windows image, including the component store. The RestoreHealth option scans the store for corruption and repairs it automatically, fetching clean replacement files from Windows Update. It needs an internet connection for that, and administrator rights, because it changes system files.

  1. Type Command Prompt in the search box on the taskbar.
  2. Right-click Command Prompt in the results and select Run as administrator, then select Yes at the permission prompt.
  3. Type the following command exactly as shown, watching the spaces before each slash, and press Enter: DISM.exe /Online /Cleanup-Image /RestoreHealth
  4. Wait for the command to finish. Microsoft says the operation takes several minutes, and the percentage can sit still for a stretch. Do not close the window while it is running.
  5. When it finishes, read the final line. If it says The restore operation completed successfully, the store is repaired. Close nothing yet: SFC is next.
See also  Fix Remote Computer Requires Network Level Authentication (NLA) Error: Quick Solution Guide

If RestoreHealth ends with an error about source files, such as 0x800f081f or 0x800f0906, it means it could not get the clean files it needs. That is the one result that changes the plan, and Step 2 covers it.

Step 2: When RestoreHealth cannot find its files, use a Windows ISO as the source

RestoreHealth normally downloads its clean files from Windows Update. When that route is broken, or the PC has no reliable internet, the repair fails with a message that the source files could not be found. The answer is to hand DISM clean files from local media instead: a Windows 11 ISO that matches the version, edition, and language already installed on the PC. Check your installed version first with winver, which shows the version and build in a small window. A source from a different version or edition can fail, because it may not hold the files your PC needs.

The method below mounts the install image from the ISO and points DISM at the mounted Windows folder, which is the form Microsoft shows in its own repair guide. It takes a few more commands than the shortcut form, but a wrong drive letter or wrong edition shows up early instead of at the end.

Mount the ISO and find the right edition index

  1. In File Explorer, right-click the Windows ISO file and select Mount. Windows assigns it a drive letter. The steps below use E as an example, so replace E with your actual letter everywhere it appears.
  2. Open the mounted drive and look in the sources folder. Most ISOs carry install.wim there. Some carry install.esd instead. Note which one yours has, because the commands below use the file you actually have.
  3. In the same administrator Command Prompt window, list the editions inside the install file and find the index number for your edition, Home or Pro: Dism /Get-WimInfo /WimFile:E:\sources\install.wim
  4. Read the list and write down the index number next to your edition. A single ISO often holds several editions.

Point DISM at the mounted image and repair from it

  1. Mount the install image read only, so nothing in the ISO can be changed by accident. Replace 1 with the index number you found in the previous section: Dism /Mount-Image /ImageFile:E:\sources\install.wim /Index:1 /MountDir:C:\mount /ReadOnly
  2. If the C:\mount folder does not exist yet, create it first with mkdir C:\mount, then run the mount command again.
  3. Run the repair, pointing DISM at the mounted Windows folder. The LimitAccess option stops DISM from going back to Windows Update for files, so it uses only the local source: Dism /Online /Cleanup-Image /RestoreHealth /Source:C:\mount\windows /LimitAccess
  4. Wait for the restore operation to report success, exactly as in Step 1.
  5. Unmount the image when the repair is done: Dism /Unmount-Image /MountDir:C:\mount /Discard
  6. Run sfc /scannow next, as described in Step 3. Do not retry the update before SFC has run.

If your ISO carries install.esd instead of install.wim, check the edition index with Dism /Get-WimInfo /WimFile:E:\sources\install.esd, then run the repair straight from the file: DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:ESD:E:\sources\install.esd:1 /LimitAccess, replacing 1 with your edition index and E with your drive letter. SFC is still the next step.

Diagram of the DISM ISO source method: mount the Windows ISO, find install.wim or install.esd in the sources folder, check the edition index, mount the image, then run RestoreHealth with the mounted Windows folder as the source

Microsoft documents this repair source pattern in its guide to repairing a Windows image, including the mounted folder form and the LimitAccess option that keeps DISM from using Windows Update as a backup source. See Microsoft Learn: Repair a Windows Image. If the ISO repair also fails, do not keep downloading new ISOs and trying again. Move to Step 3, then Step 4.

See also  How to Turn Off the Sticky Keys Shortcut Popup on Windows 11

Step 3: Run SFC to repair the system files

System File Checker, SFC, scans protected Windows system files and replaces any that are damaged or incorrect with clean copies. The clean copies come from the component store, which is why this step only runs after DISM has repaired it. Running SFC first, on a damaged store, is the reason SFC sometimes reports files it could not fix.

  1. Stay in the same administrator Command Prompt window. If you closed it, open Command Prompt as administrator again.
  2. Type the following command, with a space between sfc and the slash, and press Enter: sfc /scannow
  3. Wait for the scan to reach 100 percent. Microsoft says this takes several minutes. Do not close the window while it is running.
  4. Read the result message, then restart the PC, because some repaired files only take effect after a restart.
  5. After the restart, open Settings, select Windows Update, and select Check for updates. If the update installs, the repair is done.

How to read the SFC result

SFC ends with one of a small set of messages. The table covers the three you are likely to see.

SFC resultWhat it meansWhat to do next
Windows Resource Protection did not find any integrity violationsNo protected system files were damagedRestart and retry the update
Windows Resource Protection found corrupt files and successfully repaired themDamaged files were found and replaced from the repaired storeRestart and retry the update
Windows Resource Protection found corrupt files but was unable to fix some of themThe store still has damage SFC cannot work aroundRun DISM RestoreHealth again, then SFC again, and if it repeats, go to Step 4 and Step 5

Step 4: Reset Windows Update if the update still fails

Resetting Windows Update clears the downloaded update files and the folders Windows uses to check update signatures. It deals with the download side of the problem, not the component store, so it is the right step only after DISM and SFC have run. If the store is still damaged, a reset changes nothing.

  1. Open Command Prompt as administrator, as in Step 1.
  2. Stop the three services that use the update folders. Type each command and press Enter after it: net stop bits, then net stop wuauserv, then net stop cryptsvc
  3. Rename the two folders so Windows builds fresh ones when the services start again. Renaming keeps the old folders as a backup instead of deleting them: ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak, then ren %systemroot%\System32\catroot2 catroot2.bak
  4. Start the services again, in any order: net start cryptsvc, then net start bits, then net start wuauserv
  5. Close Command Prompt and restart the PC, then open Settings, select Windows Update, and select Check for updates.

If a rename command fails because the folder is in use, one of the services is still running. Run the three stop commands again and repeat the rename. If a .bak folder from an earlier reset already exists, delete or rename the old .bak folder first. Microsoft documents this manual reset in its additional resources for Windows Update, including stopping the BITS, Windows Update, and Cryptographic services before renaming the folders.

Decision diagram for when RestoreHealth fails: success means run SFC next, source file errors mean use a mounted ISO, repeated failure means reset Windows Update, and if everything fails use Reinstall now

Step 5: Repair Windows with Reinstall now

If DISM, SFC, and the update reset have all run and the update still fails with 0x80073712, the damage goes deeper than the component store and the download cache. The next step repairs the Windows installation itself, without removing anything, using the built in option under Fix problems using Windows Update.

  1. Back up your important files first. The repair is designed to keep them, but a backup is worth taking before any repair that touches the whole installation.
  2. Connect the PC to power and to the internet. The repair downloads the current version of Windows, so a laptop on battery or a flaky connection can interrupt it.
  3. Open Settings, select System, then select Recovery.
  4. Under Fix problems using Windows Update, select Reinstall now, then select OK.
  5. Let the repair version download and install, then restart when Windows asks. Afterwards, open Settings, select Windows Update, and select Check for updates.
See also  How to Install Android Studio on Windows

This reinstalls the same Windows version that is already on the PC, and it repairs system files and components while keeping your installed apps, personal files, and settings. It is the least disruptive repair that still touches the whole installation, which is why it is the last step here and not the first. If the Reinstall now option is missing, the PC may be managed by a workplace or school, or it may be missing a servicing update the option needs. On a managed PC, ask the organisation administrator rather than working around the policy.

If the next error is a different code

Fixing the component store sometimes reveals a different problem underneath, and the next update attempt fails with a different code. That is progress, not a new failure: a new code means a new cause, and it needs its own fix rather than another round of DISM. Error 0x80070002 means Windows went looking for a file it expected and could not find it, a different kind of missing file problem from a damaged store, and our guide to fixing Windows Update error 0x80070002 covers it step by step. Error 0x80070005 means Windows was refused permission to do something the update needed, which points at permissions rather than damaged files, and our guide to fixing Windows Update error 0x80070005 walks through that fix. Match the code on your screen to the right guide instead of repeating the steps above for a problem they were not written to fix.

If the error keeps coming back

A single repair that holds is the normal outcome. If 0x80073712 returns on the next update, or returns every month, something is damaging the store again, and repeating the same repair without asking why will keep failing the same way. Use the checks below to pick the next step from the result you actually got.

  • Run DISM RestoreHealth and SFC once more, in that order, and retry the update. A single repeat is reasonable. A third repeat without a new result is not.
  • Check whether only one update fails while others install. If a single update is the problem, search for its KB number in the Microsoft Update Catalog and install it by hand.
  • Look at when the failures happen. Corruption that returns after every update, or after every restart, points at the drive or memory rather than the update itself.
  • Read the CBS log at %windir%\Logs\CBS\CBS.log if you need the detail of what the repair found and fixed. It is the record DISM and SFC both write to.

Error 0x80073712 looks alarming because it blocks every update behind it, but it names a specific, repairable problem: the component store has a damaged or missing part. Repair the store with DISM RestoreHealth, using a mounted ISO as the source when RestoreHealth cannot find clean files on its own, then repair the system files with SFC, and reset Windows Update only if the update still fails after both. The PC that still fails after all of it needs the Reinstall now repair, not another round of the same commands.

David Coleman
Scroll to Top