How Do I Fix Windows Update Error 0x80070002?
Error 0x80070002 means Windows Update cannot find a file it needs to complete the installation. Here's how to clear the cache, repair system files, and check for drive errors.
Issue type: Windows Update error — 0x80070002 (ERROR_FILE_NOT_FOUND)
SEO focus: If you are looking for windows update error 0x80070002, this guide starts with the fastest diagnosis, then moves to the exact fix that matches the symptom.
Short answer: Error 0x80070002 means Windows Update looked for a file that should be in the update cache or component store, and it wasn’t there. The most effective fix is to fully delete the SoftwareDistribution folder (not just rename it), run DISM and SFC, and then check the drive for errors. If disk errors appear in Event Viewer, address those first.
Windows Update Error 0X80070002: Quick Diagnosis
This error usually follows a partial update download, a sudden power loss during a previous update attempt, or a disk error that silently deleted files Windows Update expected to find. Open Event Viewer (Win + S > Event Viewer) > Windows Logs > System. Look for disk-related errors with these Event IDs: 7 (bad block), 11 (driver detected controller error), or 51 (paging error during read). If any of these appear around the time of the update failure, your drive may have bad sectors — that’s the root cause, and software fixes alone won’t permanently solve it until you address the drive health. If no disk errors appear, the update cache is the likely cause.
What to do first
- Run the Windows Update Troubleshooter: Settings > System > Troubleshoot > Other troubleshooters > Windows Update > Run. Let it finish before proceeding.
- Fully delete the Windows Update cache. Open Command Prompt as Administrator:
net stop wuauserv
net stop bits
net stop cryptSvc
net stop msiserver
rd /s /q C:WindowsSoftwareDistribution
rd /s /q C:WindowsSystem32catroot2
net start wuauserv
net start bits
net start cryptSvc
net start msiserver
Therd /s /qcommand deletes the folder entirely. Windows recreates it automatically with fresh files on the next update check. - Run DISM to repair the component store:
DISM /Online /Cleanup-Image /RestoreHealth
Wait for it to complete fully. - After DISM, run:
sfc /scannow
Restart your PC. - Check the drive for file system errors. Open Command Prompt as Administrator and run:
chkdsk C: /f /r /x
You’ll be prompted to schedule the check at next restart. Type Y and restart. The check runs before Windows boots and can take 20–60 minutes depending on drive size. After it finishes and Windows loads, try the update again. - If a specific update is failing repeatedly, find its KB number in Settings > Windows Update > Update history and download it manually from catalog.update.microsoft.com.
Common mistake
Using the ren command to rename SoftwareDistribution instead of fully deleting it. Renaming keeps the folder’s internal database files intact. When Windows recreates the folder and starts building a new update database, it sometimes cross-references old data from the renamed folder, which can re-introduce the same missing file reference. Use rd /s /q to delete the folder cleanly so Windows builds it completely from scratch.
Best next step
If chkdsk reports repaired bad sectors and the error reappears on the next update cycle, download CrystalDiskInfo (free) and check your drive’s S.M.A.R.T. status. If it shows “Caution” or “Bad” with reallocated sector counts increasing, the drive is failing. No update fix will hold reliably on a deteriorating drive — replace it and perform a clean Windows installation. Back up all important data immediately if S.M.A.R.T. shows any warnings.
Official reference: For official update guidance, check Microsoft’s Windows Update FAQ before using advanced repair steps.
Quick Q&A
Is it safe to delete the SoftwareDistribution folder completely?
Yes. It only holds downloaded update files — not any part of your Windows installation, personal files, or applications. Windows recreates the folder automatically and re-downloads whatever it needs. The only consequence is that previously downloaded updates will need to be re-downloaded.
This error appeared right after I used a disk cleanup or optimization tool. Is that related?
Very likely. Some third-party cleanup tools scan the SoftwareDistribution folder and delete files they identify as “junk” while the update service is active. This leaves broken entries in the update database. Run the cache-clearing commands above to rebuild it, and exclude C:WindowsSoftwareDistribution from your cleanup tool’s scan paths going forward.
Can error 0x80070002 mean my drive is physically failing?
Yes, especially if it appears alongside Event IDs 7, 11, or 51 in Event Viewer under Windows Logs > System. A drive with developing bad sectors can silently drop files and cause “not found” errors across many Windows operations, not just updates. Check drive health with CrystalDiskInfo before spending time on software fixes.