Windows Update Error 0x80070002: Fixes That Actually Work
Error 0x80070002 means Windows Update can't find a needed file. The culprit is almost always a corrupted SoftwareDistribution folder. Here's how to fix it fast.
Corrupted SoftwareDistribution Folder (Most Common Cause)
This error shows up when Windows Update downloads a partial or corrupt update — usually from a bad internet drop mid-download or a disk space issue. I've seen it on Windows 10 22H2 and Windows 11 23H2 after forced shutdowns. The core problem: the C:\Windows\SoftwareDistribution folder has garbage data that Windows can't read. The fix is to delete its contents.
- Open Command Prompt as administrator. Hit Start, type cmd, right-click, select Run as administrator.
- Stop the Windows Update service and BITS service. Run these lines one at a time:
net stop wuauserv net stop bits - Rename the folder (don't delete it outright — safer):
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old - Rename the Catroot2 folder too (optional but I do it out of habit):
ren C:\Windows\System32\catroot2 Catroot2.old - Restart the services:
net start wuauserv net start bits - Close Command Prompt. Restart your PC. Try Windows Update again.
This works 80% of the time. Windows rebuilds the folder fresh on next update check. Don't bother with the Windows Update troubleshooter first — it rarely fixes this.
System File Corruption (Second Most Common)
If the folder clean didn't cut it, Windows core system files might be busted. I've seen this after bad driver updates or third-party antivirus nuking files it shouldn't. Run SFC and DISM in order. DISM first, then SFC — not the other way around.
- Open Command Prompt as admin.
- Run DISM to fix the component store:
DISM /Online /Cleanup-Image /RestoreHealth - Let it finish. Takes 5-10 minutes. It'll pull clean files from Windows Update — but if your internet is flaky, use a local source:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess. - Then run SFC:
sfc /scannow - Restart and check updates.
If SFC finds corrupted files it can't fix, check the CBS.log file at C:\Windows\Logs\CBS\CBS.log — it'll show you the exact file names. Sometimes you need to manually replace a DLL from a known-good copy.
Damaged Windows Update Components (Third Most Common)
This is rarer but nasty. The services that manage updates get misconfigured — usually after a failed update rollback or a manual registry edit gone wrong. The fix is a full reset of Windows Update components via a script.
- Create a new text file on your desktop. Name it WUReset.bat.
- Paste this into it:
@echo off 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 pause - Right-click the file and Run as administrator.
- After it finishes, restart and run Windows Update.
This script stops all update-related services, renames the folders, and restarts services. It's the nuclear option for this error. I've used it on servers and workstations alike. If you still get the error after this, check your DNS — a misconfigured proxy or VPN can also cause it. Set DNS to 8.8.8.8 and 8.8.4.4 temporarily to rule that out.
Quick-Reference Summary Table
| Cause | Fix | Success Rate | Time Needed |
|---|---|---|---|
| Corrupted SoftwareDistribution folder | Stop services, rename folder, restart services | 80% | 5 minutes |
| System file corruption | Run DISM then SFC | 15% | 15 minutes |
| Damaged update components | Run WUReset.bat script | 5% | 10 minutes |
Start with the folder rename. That's your best bet. If it fails, move down the list. Skip the built-in troubleshooter — it wastes time.
Was this solution helpful?