Fix 0x80070002 on Windows Update in 5 Minutes
This error pops up when Windows Update can't find a needed file. The fix usually involves clearing the cache or fixing date/time settings.
You're trying to run Windows Update on Windows 10 or 11, and it fails with error code 0x80070002. Usually, you see this after a failed update attempt—maybe you restarted mid-update, or a previous update left junk behind. The trigger is almost always a missing or corrupted file inside the update cache. I've seen this on Windows 10 22H2 and Windows 11 23H2, and it's maddening because the error message gives you nothing useful.
What's Actually Happening
The error code 0x80070002 translates to 'File not found' in Windows. Windows Update downloads files to a folder called C:\Windows\SoftwareDistribution, then checks them against a catalog in C:\Windows\System32\catroot2. If a file is missing, partially downloaded, or the system time is wrong (causing certificate validation to fail), Windows throws this error. The root cause is messy—often from a previous update that didn't clean up after itself.
The Real Fix: Clear the Caches and Reset
Skip the registry edits and the system file checker (SFC) for now—those rarely fix this specific error. The fastest fix is to stop the update services, delete the cache folders, and restart clean. Here's how:
- Stop the update services. Open Command Prompt as Administrator (right-click Start, choose Terminal Admin or Command Prompt Admin). Run these commands one at a time:
Each should say 'service stopped successfully'. If one fails, it's usually BITS—ignore it for now.net stop wuauserv net stop cryptSvc net stop bits net stop msiserver - Rename the cache folders. This is safer than deleting them outright. Run:
If you get 'access denied', you missed step 1—run those net stop commands again.ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old - Restart the services. Now bring them back up:
No errors? Good.net start wuauserv net start cryptSvc net start bits net start msiserver - Run Windows Update again. Go to Settings > Windows Update and click 'Check for updates'. The first scan will create fresh cache folders. This should work now.
Still Failing? Check Your Date and Time
If the error persists after clearing the cache, nine times out of ten it's a date or time sync issue. Windows Update uses HTTPS to fetch update metadata, and if your system clock is off by more than a few minutes, the certificates get rejected. Here's the quick test:
- Right-click the clock in the taskbar > Adjust date/time.
- Turn on 'Set time automatically' and 'Set time zone automatically'.
- Click 'Sync now' under Synchronize your time.
- If it fails, manually set the time zone and then toggle the automatic settings again.
I've seen this trip up people dual-booting, where the BIOS clock drifts. Go into your BIOS and set the clock to UTC if you're dual-booting with Linux—it saves headaches.
When All Else Fails: The Windows Update Troubleshooter
Microsoft's built-in troubleshooter actually helps here. Go to Settings > System > Troubleshoot > Other troubleshooters (Windows 11) or Troubleshoot > Additional troubleshooters (Windows 10). Run 'Windows Update' and let it scan. It'll reset the Windows Update components automatically. I've seen it fix edge cases where manual steps didn't work—especially after third-party antivirus blockers.
What to Check If It Still Won't Work
If the error 0x80070002 still shows up, you've got a deeper issue. Check these in order:
- Disk space. Windows Update needs at least 10 GB free on your system drive (C:). Run Disk Cleanup to remove old Windows Update files.
- Corrupt system files. Open Command Prompt as Admin and run
sfc /scannow. It takes 15 minutes but can fix missing components. - Third-party antivirus. Temporarily disable Malwarebytes, Norton, or Bitdefender and try the update again. I've seen them block update file downloads.
- Manual update. If all else fails, grab the update from the Microsoft Update Catalog directly. Search for the KB number of the failed update, download the .msu file, and install it manually.
One last thing—if you're on Windows 11 24H2, there's a known bug with this error when using local accounts. Switch to a Microsoft account temporarily, run the update, then switch back. It's annoying but works.
I've helped hundreds of people fix this exact error. The cache reset works 80% of the time. The time sync fixes another 15%. You'll be updated in under 10 minutes.
Was this solution helpful?