sfc /scannow if it still fails.0x80070002, explained
0x80070002 translates to ERROR_FILE_NOT_FOUND. The component that failed expected a file at a certain path and it wasn’t there. In Windows Update, that is usually because the download cache is out of sync: some files were deleted or the download was interrupted.
Outside Windows Update, the same code shows up in File History, backup tools, the Store and installers. The cause is the same (a missing file or path), but the fix is to check the source or destination location.
Signs of the problem
- Windows Update shows “Install error - 0x80070002” or “There were some problems installing updates”.
- Feature update or cumulative update fails repeatedly.
- Backup or app install fails with “The system cannot find the file specified”.
Common causes
- Incomplete or corrupted files in the Windows Update cache.
- Wrong system date/time breaking update validation.
- Corrupted system component store.
- Missing source or target files for backups and installers.
Fixes to try, in order
- Check date and timeTurn on Set time automatically in Date & time settings and click Sync now.
- Run the troubleshooterWindows 11: Settings → System → Troubleshoot → Other troubleshooters → Windows Update → Run. Windows 10: Settings → Update & Security → Troubleshoot → Additional troubleshooters.
- Reset the update cacheRun the commands below, restart, and check for updates again.
- Repair the component storeRun
DISM /Online /Cleanup-Image /RestoreHealththensfc /scannow. - Install the update manuallyNote the KB number from Update history and download it from the Microsoft Update Catalog.
- For backups and installersCheck that the drive, folder or network share you're backing up to or installing from still exists and is connected.
Command
net stop wuauserv
net stop bits
net stop cryptsvc
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
ren %systemroot%\System32\catroot2 catroot2.old
net start cryptsvc
net start bits
net start wuauserv
Run each line in an elevated Command Prompt (Run as administrator). Renaming these folders only clears the update download cache; Windows rebuilds them. If a rename says 'access denied', restart and run the lines again.
Prevent it from coming back
Let updates finish downloading before restarting and avoid 'cleaner' tools that delete the update cache mid-download.
