Independent guides. Not affiliated with Microsoft. We never ask you to call, pay, or let anyone connect to your PC.

How we work
Fixpath

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.

  1. Select Start > Power. Choose Update and restart if it's offered, otherwise Restart.
  2. Open Settings then Windows Update and select Retry or Check for updates. On Windows 10 it's Settings then Update & 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".

  1. Open Settings then Time & language then Date & time. Turn on Set time automatically and Set time zone automatically (if shown), then select Sync now.
  2. Check Settings then System then Storage. If drive C: is nearly full, see free up disk space safely.
  3. 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

  1. Open Settings then System then Troubleshoot then Other troubleshooters.
  2. Next to Windows Update, select Run. On recent versions this opens the Get Help app.
  3. Restart and try the update again.

On Windows 10

  1. Open Settings then Update & Security then Troubleshoot then Additional troubleshooters.
  2. 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.

  1. Select Start, type cmd, right-click Command Prompt and select Run as administrator.
  2. Stop the update services, one at a time. Each should say it stopped or wasn't started.
    Command Prompt as administrator
    net stop wuauserv
    How do I open Command Prompt as administrator?

    Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.

    Command Prompt as administrator
    net stop bits
  3. Rename the folder. No message means it worked.
    Command Prompt as administrator
    ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
    If you see Access is denied, run net stop wuauserv again and repeat straight away.
  4. Start the services again.
    Command Prompt as administrator
    net start bits
    Command Prompt as administrator
    net start wuauserv
  5. 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.

  1. In Command Prompt as administrator, run DISM. It can take 10 minutes or more.
    Command Prompt as administrator
    DISM.exe /Online /Cleanup-image /Restorehealth
    It should end with The restore operation completed successfully.
  2. Then run SFC.
    Command Prompt as administrator
    sfc /scannow
    "Did not find any integrity violations" or "successfully repaired them" are good results. Restart and retry the update.

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.

  1. On Windows 11, open Settings then System then Recovery and select Reinstall now under Fix problems using Windows Update. This keeps your files, apps and settings.
  2. 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:

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:

Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.