Fix error 0x80070002
0x80070002 is ERROR_FILE_NOT_FOUND: the system cannot find the file specified. In Windows Update it usually means a downloaded update is incomplete or its cache is out of step. Restart, run the Windows Update troubleshooter, then clear the C:\Windows\SoftwareDistribution folder so the update downloads again from scratch.
Checked November 10, 2026 against the manufacturer's own pages.
The short version
What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.
Official files only, nothing bundled
Step by step
Restart before anything else
A pending restart can leave half-installed files behind. Use Start, Power, Restart (not Shut down), then open Settings, Windows Update and press Check for updates.
Run the Windows Update troubleshooter
In Windows 11 open Settings, System, Troubleshoot, Other troubleshooters and press Run next to Windows Update. Apply what it suggests and restart.
Set the clock to sync automatically
A wrong date can make downloaded files look invalid. Go to Settings, Time and language, Date and time, switch on Set time automatically and Set time zone automatically, then press Sync now.
Empty the update download cache
Press Win + R, type services.msc, right-click Windows Update and choose Stop. Delete everything inside C:\Windows\SoftwareDistribution, go back to Services, right-click Windows Update and choose Start. Windows downloads the update again.
Repair Windows files
In an administrator Command Prompt run DISM.exe /Online /Cleanup-image /Restorehealth and then sfc /scannow. Microsoft lists 0x80070002 among the corruption errors this pair can fix.
Check free space and unplug extras
Microsoft asks for at least 20 GB free for a 64-bit upgrade. Clear space in Settings, System, Storage, and unplug USB drives and docks you do not need before retrying.
Faster option: let a PC tool do the clean-up
The steps above fix this error. Errors like this often come back on a PC full of junk files, broken registry entries and leftovers from removed programs. A maintenance tool clears those in one scan.
Scan and clean up Windows
Finds junk files, invalid registry entries, startup slowdowns and privacy traces, then fixes them in one click.
Auslogics BoostSpeed 14 · Free version · Windows 11, 10, 8, 7 · 30-day refund on Pro
Why Windows Update reports a missing file
The code reads as Win32 error 2 wrapped in an HRESULT. Windows Update works in stages: it downloads payloads into the SoftwareDistribution folder, checks them, then hands them to the servicing stack. If a file vanishes between those stages, or the download stopped early, the next stage asks for something that is not there. Microsoft’s Windows 11 support list places 0x80070002 under “update failed to install” and points first to a restart, the troubleshooter and disk space.
Monthly update or feature upgrade?
Look at where you saw it. In Settings, Windows Update, Update history, a failed quality update with this code nearly always clears after the cache reset. During a feature upgrade with Setup or the Installation Assistant, the code often comes with an extend code. Microsoft’s resolution table lists 0x80070002 - 0x20009 together with similar partition codes, raised while Setup analyses and checks partitions.
Less common: two system partitions
If you moved Windows to a new SSD and left the old drive connected, Setup can find two system partitions and stop. Microsoft’s fix is to disconnect or disable the drive that holds the unused system partition during the upgrade and reconnect it after. Deleting the unused partition also works, but copy anything you need from that drive first.
Questions
Which file is missing?
The code does not say. Run Get-WindowsUpdateLog in PowerShell to create WindowsUpdate.log on the desktop, and look for 0x80070002 lines. The CBS.log in C:\Windows\Logs\CBS also names the file for install failures.
Is it safe to delete the SoftwareDistribution contents?
Yes, with the Windows Update service stopped first, as Microsoft describes. It only holds downloads and update history. Windows rebuilds it the next time you check for updates.
I see 0x80070002 - 0x20009 during an upgrade. Is it the same?
No. That pair comes from Setup checking partitions. Microsoft links it to more than one system partition, for example an old system drive still connected.
Can a printer or app install show 0x80070002?
Yes. Any program can return ERROR_FILE_NOT_FOUND. This page covers Windows Update and upgrades; for an app, reinstall it from its maker.