0x80070002 / 0x80070003 — Windows Update cannot find a file
The update cache has a partial or mismatched download, so the installer looks for files the manifest promised and does not find them.
What you see
Updates download, then fail at install with 0x80070002. Retrying downloads the same update again and fails the same way.
What is actually wrong
A corrupted SoftwareDistribution cache, usually from an interrupted download, a full disk, or a machine forced off mid-update.
Codes and articles
Start here — find out which fix applies
A script that runs the 1 inspection command from the write-up below and prints what each one returned. It reads the machine and changes nothing — every command that could write, delete, start or stop is excluded from it by construction. Run this first, then pick the fix its output points at.
No warranty. Use at your own risk - JbTecWiz accepts no liability. Read it before you run it, and have a backup.
The fix
Reset the Windows Update cache
Standard first move for almost any Windows Update failure that is not a disk-space or component-store problem.
Stop the services that hold the cache open.
Stop-Service -Name wuauserv, bits, cryptsvc, msiserver -ForceRename the cache folders rather than deleting them.
Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.oldRename-Item C:\Windows\System32\catroot2 catroot2.old
Renaming is reversible and takes the same amount of time as deleting. Windows recreates both folders on next start.
Start the services again.
Start-Service -Name cryptsvc, bits, msiserver, wuauservCheck for updates again. The first scan will be slower than usual because the catalogue is being rebuilt.
Once updates install cleanly, delete the .old folders to reclaim the space.
Remove-Item C:\Windows\SoftwareDistribution.old -Recurse -ForceRemove-Item C:\Windows\System32\catroot2.old -Recurse -Force
Get-Item C:\Windows\SoftwareDistribution | Select-Object FullName, CreationTimeNo warranty. Use at your own risk - JbTecWiz accepts no liability. Read it before you run it, and have a backup.
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.