Windows Update fails silently more often than it should. You click "Check for updates," it churns for a while, and then drops a cryptic hex code with no explanation. Three of the most common ones right now are 0x80070002, 0x800f081f, and 0x80240034. Each one points to a different underlying problem, but the fixes overlap enough that you can usually knock them out in one troubleshooting session.

Error 0x80070002: Missing Files

This one means Windows Update can't find files it needs during installation. It usually happens when the update cache gets corrupted or when a previous update left behind incomplete files.

Quick fix:

net stop wuauserv
net stop bits
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
net start wuauserv
net start bits

Renaming the SoftwareDistribution folder forces Windows to rebuild its update cache from scratch. Run Windows Update again after this.

If the error persists, check for damaged system files:

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

Run SFC first, then DISM. Reboot between them if SFC finds and fixes anything.

Error 0x800f081f: Damaged Component Store

This code shows up when the Windows component store is corrupted or when required update packages are missing. It's especially common after failed cumulative updates or interrupted installs.

Fix with DISM:

DISM /Online /Cleanup-Image /RestoreHealth

If DISM can't repair on its own (it needs to download repair files from Windows Update), you can point it at a Windows ISO as a source:

DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim

Replace D: with whatever drive letter your mounted ISO uses.

Alternative: reset Windows Update components entirely

net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptsvc
net start bits
net start msiserver

This is the nuclear option for update component resets. It stops all four update-related services, renames both cache folders, and restarts everything clean.

Error 0x80240034: Incomplete Download

This code means an update started downloading but didn't finish. Network interruptions, VPN connections dropping mid-download, or aggressive antivirus scanning can all cause it.

Steps to fix:

  1. Run the built-in Windows Update Troubleshooter: Settings, then Windows Update, then Troubleshoot, then Additional troubleshooters, then Windows Update
  2. If that doesn't clear it, reset the update cache using the same commands from the 0x80070002 section above
  3. Temporarily disable any third-party antivirus during the update
  4. If you're on a VPN, disconnect it and try again on your regular connection

For stubborn cases, you can download the update manually from the Microsoft Update Catalog and install it directly. Search by the KB number from your update history.

The Reset Script That Fixes Most Update Errors

If you're dealing with any of these codes (or similar ones), this PowerShell script resets everything at once:

# Stop update services
Stop-Service -Name wuauserv, cryptsvc, bits, msiserver -Force

# Clear update caches
Remove-Item C:\Windows\SoftwareDistribution -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item C:\Windows\System32\catroot2 -Recurse -Force -ErrorAction SilentlyContinue

# Re-register update DLLs
$dlls = @('atl.dll','urlmon.dll','mshtml.dll','shdocvw.dll','browseui.dll',
         'jscript.dll','vbscript.dll','scrrun.dll','msxml3.dll','msxml6.dll',
         'actxprxy.dll','softpub.dll','wintrust.dll','dssenh.dll','rsaenh.dll',
         'cryptdlg.dll','oleaut32.dll','ole32.dll','shell32.dll','wuapi.dll',
         'wuaueng.dll','wuaueng1.dll','wucltui.dll','wups.dll','wups2.dll',
         'wuweb.dll','qmgr.dll','qmgrprxy.dll')
foreach ($dll in $dlls) { regsvr32.exe /s $dll }

# Restart services
Start-Service -Name wuauserv, cryptsvc, bits, msiserver
Write-Host 'Update components reset. Run Windows Update again.'

Save this as a .ps1 file and run it elevated. It handles the cache cleanup, DLL re-registration, and service restart in one shot.

When None of This Works

If you've reset components, run SFC and DISM, and the update still fails with the same code, try an in-place upgrade. Download the Windows 11 Installation Assistant from Microsoft and run it. It reinstalls Windows while keeping your files, apps, and settings intact. It also replaces all system files, which fixes deep component store corruption that DISM can't reach.

If you're managing multiple machines hitting these errors after a Patch Tuesday rollout, our team can help get them patched and stable.