Quick answer: Reset the Windows Update cache and run DISM and SFC. That fixes 0x80070002 nine times out of ten.
You're trying to install updates and Windows throws 0x80070002. The error code translates to “The system cannot find the file specified.” That sounds vague, but it means Windows Update is looking for update files that aren't there. Maybe a previous update download got interrupted, or your system files are slightly corrupted. It happens a lot on machines that have been running for months without a restart.
Here's how to fix it. Follow these steps in order—don't skip ahead.
Step-by-Step Fix
Step 1: Run the Windows Update Troubleshooter
- Press Windows key + I to open Settings.
- Go to System > Troubleshoot > Other troubleshooters (on Windows 11) or Update & Security > Troubleshoot > Additional troubleshooters (on Windows 10).
- Click Run next to Windows Update.
- Wait for it to finish. It might say “Issues detected” and ask to apply fixes—click Apply this fix.
After it runs, try checking for updates again. If it works, you're done. But honestly, the troubleshooter often misses the real problem. If you still see 0x80070002, move to Step 2.
Step 2: Reset the Windows Update Cache
This clears out the downloaded update files. That's where the missing file problem usually lives.
- Press Windows key + R, type
services.msc, and press Enter. - Find Windows Update in the list. Right-click it and select Stop. Leave the Services window open.
- Open File Explorer and go to
C:\Windows\SoftwareDistribution\Download. - Select everything inside that folder and delete it. If Windows says files are in use, you didn't stop the service properly—go back and make sure Windows Update shows “Stopped.”
- Go back to the Services window. Right-click Windows Update again and select Start.
After this, the folder is empty. Windows will re-download what it needs. Try updating again. If the error persists, you need to check system file corruption.
Step 3: Run DISM and SFC
Corrupted system files can cause 0x80070002. DISM fixes the image, then SFC repairs files.
- Right-click the Start button and select Windows Terminal (Admin) or Command Prompt (Admin).
- Run this command first:
DISM /Online /Cleanup-Image /RestoreHealth
This scan takes a few minutes. Let it finish completely. Don't close the window even if it seems stuck. - Once DISM reports “The restore operation completed successfully,” run:
sfc /scannow
SFC takes another few minutes. It will tell you if it found and fixed corrupted files. - Restart your computer.
After restart, check for updates. This solves most remaining cases.
Alternative Fixes If the Main Steps Don't Work
Alternative 1: Delete the Catroot2 Folder
The Catroot2 folder holds update signatures. If it's corrupted, you get the same error. This one's a bit more involved.
- Stop the Windows Update service and the Cryptographic service. In Services (run
services.msc), right-click Windows Update and Cryptographic Services, and stop both. - Open File Explorer and go to
C:\Windows\System32\Catroot2. - Delete the entire folder. Don't worry—Windows recreates it automatically.
- Go back to Services and start both services again.
Note: never delete the Catroot folder (without the 2). Only Catroot2 is safe to delete.
Alternative 2: Check Disk for Errors
Sometimes the issue is a failing hard drive or bad sectors. Run a disk check.
- Open Command Prompt as administrator.
- Run
chkdsk C: /f /r. - You'll get a prompt to schedule it for next restart. Type Y and press Enter.
- Restart your PC. The check runs before Windows loads and can take a while—grab a coffee.
If chkdsk finds errors, that might be your real problem.
Alternative 3: Use the Media Creation Tool to Repair Install
If nothing works, you can do an in-place repair upgrade. Download the Media Creation Tool from Microsoft, run it, and choose “Upgrade this PC now.” It keeps your files and apps but reinstalls Windows core files. It's a bigger time investment but often fixes stubborn update issues.
Prevention Tips
After you fix this, you want to avoid it happening again. Here's what I tell my users:
- Restart regularly. Don't just shut down or sleep. A real restart clears temporary junk that can block updates.
- Don't force shutdown during updates. Let updates finish, even if it takes longer than you'd like. Interrupting an update is the number one cause of missing files.
- Keep free disk space. Windows needs room to download and unpack updates. Leave at least 20 GB free on your system drive.
That's it. You should be update-free now. If you're still stuck after trying everything, at that point I'd suggest backing up your data and considering a clean install—but that's rare. Most people fix 0x80070002 with the steps above.