Error codeWindows Update
Windows Update error 0x80070002
0x80070002
- Applies to
- Windows 11 and Windows 10
- Difficulty
- Moderate
- Time
- About 40 min
- Risk
- Changes settings
- Reviewed
Quick answer
Windows couldn't find a file the update needed, most often because the download is incomplete. Restart and retry, check the date and free space, run the Windows Update troubleshooter, then clear the update download cache so the update downloads fresh.
What this code means
0x80070002 is Windows' general "file not found" error (its technical name is ERROR_FILE_NOT_FOUND, "The system cannot find the file specified"). In Windows Update it means the installer went looking for a file it expected and it wasn't there. Microsoft's update troubleshooting page simply lists it as "Update failed to install".
The usual reason is an update download that is incomplete or damaged, or an earlier update that never finished. The same code can also appear in other places, such as backups or app installs. This page covers Windows Update.
Common causes
- An incomplete or damaged download in the update cache.
- An earlier update still waiting for a restart to finish.
- The wrong date or time, which can break the download.
- Too little free space on drive C:.
- Damaged Windows system files.
Fix 1Restart and try the update again
If an earlier update is waiting for a restart, the next one can't find the files it expects. A full restart lets the earlier update finish first. Microsoft lists this as the first step for this code.
- Select Start > Power. Choose Update and restart if it's offered, otherwise Restart.
- Open Settings then
Windows Update and select Retry or Check for updates. On Windows 10 it's Settings thenUpdate & Security then .Windows Update
Fixed? You can stop here. Still happening: go to Fix 2
Fix 2Check the date, time and free space
Windows checks every download against Microsoft's servers. A clock that's far off can break that check, and a nearly full drive can stop files from being unpacked, which both end in "file not found".
- Open Settings then
Time & language then . Turn on Set time automatically and Set time zone automatically (if shown), then select Sync now.Date & time - Check Settings then
System then . If drive C: is nearly full, see free up disk space safely.Storage - Restart and try the update again.
Fixed? You can stop here. Still happening: go to Fix 3
Fix 3Run the Windows Update troubleshooter
The troubleshooter checks the update services and settings and resets common problems automatically, without touching your files.
On Windows 11
- Open Settings then
System then .Troubleshoot then Other troubleshooters - Next to Windows Update, select Run. On recent versions this opens the Get Help app.
- Restart and try the update again.
On Windows 10
- Open Settings then
Update & Security then .Troubleshoot then Additional troubleshooters - Select Windows Update, then Run the troubleshooter, and restart when it's done.
Fixed? You can stop here. Still happening: go to Fix 4
Fix 4Clear the update download cache
Downloaded updates are kept in the SoftwareDistribution folder. If a file in there is missing or damaged, Windows keeps failing on the same update. Renaming the folder makes Windows download everything fresh. Installed updates are not removed.
- Select Start, type cmd, right-click Command Prompt and select Run as administrator.
- Stop the update services, one at a time. Each should say it stopped or wasn't started.
net stop wuauservHow do I open Command Prompt as administrator?
Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.
net stop bits - Rename the folder. No message means it worked.
If you see Access is denied, run
ren %systemroot%\SoftwareDistribution SoftwareDistribution.oldnet stop wuauservagain and repeat straight away. - Start the services again.
net start bitsnet start wuauserv - Restart and select Check for updates. The update downloads again from the start.
Fixed? You can stop here. Still happening: go to Fix 5
Fix 5Repair Windows system files
If the files missing are Windows' own, the update can't build on them. DISM repairs Windows' store of system files, then System File Checker (SFC) repairs files from that store.
- In Command Prompt as administrator, run DISM. It can take 10 minutes or more.
It should end with The restore operation completed successfully.
DISM.exe /Online /Cleanup-image /Restorehealth - Then run SFC.
"Did not find any integrity violations" or "successfully repaired them" are good results. Restart and retry the update.
sfc /scannow
Fixed? You can stop here. Still happening: go to Fix 6
Fix 6Install the update another way
If Windows Update keeps failing on one update, you can download that update yourself from Microsoft, or have Windows reinstall itself while keeping your files and apps.
- On Windows 11, open Settings then
System then and select Reinstall now under Fix problems using Windows Update. This keeps your files, apps and settings.Recovery - Or download the single update from Microsoft's official Update Catalog, as shown in Windows Update failed to install.
Fixed? You can stop here. Still happening: what to do next
If none of these worked
Stop here rather than trying riskier changes. These are the right places to go next:
- Microsoft SupportOfficial help for Windows, including the Get Help app built into Windows.
- Your PC maker's support siteFor hardware faults, drivers and warranty repairs. Find your model in Settings then
System then , then type the maker's web address yourself.About - A local repair shop you can visitFor hardware faults such as a failing drive, screen or battery.
Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam
Sources and review
Checked against Microsoft's own documentation:
- Microsoft Support: Troubleshoot problems updating Windows
- Microsoft Support: Windows Update Troubleshooter
Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.