0x80070002

Fix Windows Update Error 0x80070002 – Step by Step

Windows Errors Intermediate 👁 1 views 📅 May 29, 2026

Windows Update can't find needed files. This fix starts simple, gets deeper. Most users solve it in under 5 minutes.

What the Error Means

Windows Update error 0x80070002 shows up when Windows can't locate a file it needs to finish an update. This happens on Windows 10 and 11. Common triggers: you restarted mid-update, you ran out of disk space, or you have third-party antivirus blocking file access.

Don't panic. We'll move from quick to thorough. You can stop at any step once the update runs clean.

Fix 1: 30 Seconds – Clear the SoftwareDistribution Cache

This is the fastest fix. The update folder gets corrupted files. We'll delete them safely.

  1. Press Windows Key + R. Type services.msc and hit Enter.
  2. Scroll down to Windows Update. Right-click it and select Stop. Leave the window open.
  3. Open File Explorer. Go to C:\Windows\SoftwareDistribution.
  4. Select everything inside (Ctrl+A) and press Delete. You'll get some "file in use" warnings – skip those files. That's fine; we'll get them next.
  5. Back in the Services window, right-click Windows Update again and choose Start.
  6. Close Services. Go to Settings > Update & Security > Check for updates. It should start downloading fresh files.

Expected outcome: The error may disappear. If it doesn't, move on.

Fix 2: 5 Minutes – Run the Built-in Troubleshooter

Windows has a tool for this. It automates a few cleanup steps.

  1. Open Settings (Windows Key + I).
  2. Go to Update & Security > Troubleshoot > Additional troubleshooters.
  3. Select Windows Update and hit Run the troubleshooter.
  4. Follow the prompts. It'll ask to apply fixes – say yes. It may restart your PC.

Expected outcome: The troubleshooter reports "Windows Update components repaired" or the error clears. If not, proceed.

Fix 3: 15+ Minutes – Use DISM and SFC

These are system file checkers. DISM fixes the image that feeds Windows Update. SFC repairs corrupted files. Run them in this order.

Step A: Run DISM

  1. Right-click the Start button and select Windows Terminal (Admin) or Command Prompt (Admin).
  2. Type this and press Enter: DISM /Online /Cleanup-Image /RestoreHealth
  3. Wait. This takes 10–20 minutes. You'll see a progress bar. Let it finish. It may say "The restore operation completed successfully" or "The source files could not be downloaded." Either is fine – we're cleaning up.

Expected outcome: No errors in the output. If it fails with 0x800f081f, that's a different issue – but for 0x80070002, DISM usually passes.

Step B: Run SFC

  1. In the same admin terminal, type: sfc /scannow and hit Enter.
  2. Let it scan. Takes 5–10 minutes. It'll say "Windows Resource Protection found corrupt files and successfully repaired them" or "did not find any integrity violations."
  3. Restart your PC.

Expected outcome: After reboot, check for updates again. If the error persists, move to the reset.

Fix 4: Advanced – Reset Windows Update Components Manually

This is nuclear. We stop services, delete more caches, and re-register update DLLs. Do this only if the above didn't work.

  1. Open an admin terminal (as above).
  2. Stop services one by one. Copy and paste each line, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Rename the SoftwareDistribution and Catroot2 folders. This forces Windows to create fresh ones:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 Catroot2.old
  4. Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
  5. Re-register the update DLLs. Run these one by one:
    regsvr32 /s atl.dll
    regsvr32 /s urlmon.dll
    regsvr32 /s mshtml.dll
    regsvr32 /s shdocvw.dll
    regsvr32 /s browseui.dll
    regsvr32 /s jscript.dll
    regsvr32 /s vbscript.dll
    regsvr32 /s scrrun.dll
    regsvr32 /s msxml.dll
    regsvr32 /s msxml3.dll
    regsvr32 /s msxml6.dll
    regsvr32 /s actxprxy.dll
    regsvr32 /s softpub.dll
    regsvr32 /s wintrust.dll
    regsvr32 /s dssenh.dll
    regsvr32 /s rsaenh.dll
    regsvr32 /s gpkcsp.dll
    regsvr32 /s sccbase.dll
    regsvr32 /s slbcsp.dll
    regsvr32 /s cryptdlg.dll
    (Yes, that's a lot. Copy-paste the whole block into the terminal – it'll run each one.)
  6. Reset Winsock:
    netsh winsock reset
    netsh winhttp reset proxy
  7. Restart your PC.

Expected outcome: After reboot, check for updates. This clears even stubborn 0x80070002 errors. If it still fails, you may have deeper corruption – consider a repair install.

Pro Tips

  • Disk space: Make sure you have at least 20GB free on your system drive. Low space triggers 0x80070002.
  • Antivirus: Temporarily disable third-party antivirus (like McAfee, Norton) during updates. Windows Defender alone is fine.
  • VPN: Disconnect any VPN. Some VPN clients block update downloads.

That's it. Start with the cache clean, go deeper if needed. You'll be updated in no time.

Was this solution helpful?