ERRORFile not found

Error 0x80070002File not found (Windows Update)

Error 0x80070002 is the Windows "the system cannot find the file specified" code (ERROR_FILE_NOT_FOUND, decimal 2). During Windows Update it usually means the update cache is incomplete or corrupted, so files the installer expects are missing. Resetting the Windows Update components resolves most cases.

BlackhawkHub Editorial · Updated

What it means

0x80070002 decodes to ERROR_FILE_NOT_FOUND (decimal 2): "the system cannot find the file specified". The 0x8007 prefix marks a Win32 error. In the context where most people meet it, Windows Update, it means the update mechanism looked for a file, typically in its download cache, and it was not there.

That usually happens because a download was interrupted, the update cache became corrupted, or the datastore that tracks update state is inconsistent.

Fixes, safest first

1. Windows Update troubleshooter. Settings → System → Troubleshoot → Other troubleshooters → Windows Update. It repairs the common cache and datastore problems automatically.

2. Reset the update components. In an elevated prompt:

cmd
net stop wuauserv
net stop bits
net stop cryptSvc
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start bits
net start cryptSvc

Renaming SoftwareDistribution forces Windows to rebuild the update cache from scratch, which supplies the missing files. Retry the update afterward; the process is driven by TiWorker.exe.

3. Repair system files if the error persists:

cmd
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

See DISM and sfc.

4. Check date and time. A wrong system clock can break the secure connection to update servers and produce cache and validation failures; correct it and sync time.

5. Confirm the update services are set correctly. Windows Update (wuauserv), BITS and Cryptographic Services should be running or set to manual, not disabled. Check with sc or services.msc.

If it appears outside Windows Update

The same "file not found" code can appear in backup, activation or scripting when a specific file or path is genuinely missing. There the fix is to restore or recreate the named file, not to reset update components.

Frequently asked questions

What does 0x80070002 mean?

It is the Win32 error for "the system cannot find the file specified" (decimal 2). During Windows Update it means a file the update process expected in its cache is missing, usually because a previous download was interrupted or the cache is corrupted.

How do I fix 0x80070002?

Reset the Windows Update components: stop the update services, rename the SoftwareDistribution and catroot2 folders so Windows rebuilds them, then restart the services and retry. Running the Windows Update troubleshooter first often does this automatically.

Sources