0x80070002

Windows Update Error 0x80070002: The Missing File Fix

Windows Errors Intermediate 👁 4 views 📅 Jun 3, 2026

This error means Windows can't find a file it needs for an update. The fix is clearing the SoftwareDistribution folder, then running the update again.

Yeah, that 0x80070002 error is annoying. You hit "Check for updates," it spins for a while, then pops up with that generic-sounding failure. No real explanation. But what's actually happening here is that Windows Update is looking for a file — a .cab, a manifest, or a driver package — that it can't find in the expected location. Usually because the download got interrupted or the cache is corrupted.

The Fix That Works 90% of the Time

Skip the registry tweaks and the third-party tools. The real fix is clearing out the SoftwareDistribution folder — that's where Windows stashes update files. Here's the exact sequence:

  1. Open Command Prompt as Administrator. Press Win+X, select "Windows Terminal (Admin)" or "Command Prompt (Admin)" depending on your build.
  2. Stop the update services. Run these four commands, one at a time:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

Don't panic if you see "service is not running" — that's fine, move on.

  1. Rename the SoftwareDistribution folder. This preserves it in case you need to roll back, and forces Windows to rebuild it fresh:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

The same thing works for the catroot2 folder, but I've found that's rarely needed for 0x80070002. Do it anyway if this doesn't get you there:

ren C:\Windows\System32\catroot2 catroot2.old
  1. Restart the services you stopped earlier:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
  1. Go to Settings > Update & Security > Windows Update and hit "Check for updates." This time it'll work — assuming the underlying issue was cache corruption.

That's it. Took you maybe 5 minutes.

Why Step 3 Works

The SoftwareDistribution folder contains downloaded update files and temporary manifests. When Windows Update can't find a file it expects — say, a download was cut off mid-way, or disk cleanup removed a partial download — it throws 0x80070002. Renaming the folder doesn't delete anything critical; it just tells Windows "pretend that folder doesn't exist." On the next update check, the service rebuilds the folder from scratch, downloading fresh copies of everything it needs.

This is different from error 0x80070003, which is about a bad path reference in the registry. 0x80070002 is strictly a file-not-found at the filesystem level. That's why brute-forcing the cache clear works so reliably.

Less Common Variations

Variation 1: Corrupted CBS.log

Sometimes the issue isn't the update cache, but the Component-Based Servicing (CBS) log. If the CBS log is massive (over 100 MB) or corrupted, Windows Update can't parse its own manifest list. You'll see 0x80070002 alongside warnings in the CBS.log about missing components.

Fix: Delete and rebuild the CBS log. Run:

net stop trustedinstaller
del C:\Windows\Logs\CBS\CBS.log
net start trustedinstaller

Note: On Windows 11 22H2 and later, the CBS log might be in a subfolder. Check C:\Windows\Logs\CBS\CBSPersist_YYYYMMDD.log and clean those out too.

Variation 2: Disk Space Issue Masquerading

I've seen this on systems with less than 2 GB free on the C: drive. Windows Update starts a download, runs out of space partway through, and can't flush the partial files. The error comes back as 0x80070002 even though the real problem is disk space. Run dir C:\ or check in Settings — if you're below 5 GB free, that's your actual issue.

Variation 3: Third-Party Antivirus Interfering

Some AV suites — looking at you, Norton and McAfee — lock the SoftwareDistribution folder while scanning. Windows Update can't rename or delete files, so it throws 0x80070002. Temporary fix: disable real-time protection for 15 minutes, run the update, then re-enable. The permanent fix is ditching those tools for Windows Defender, but that's your call.

Prevention

Three things to keep this from coming back:

  • Keep 10-15 GB free on C: Updates need room to breathe. Windows 10 and 11 feature updates can require up to 20 GB during installation.
  • Run DISM and SFC monthly: I do it first Sunday of every month. Open admin Command Prompt and run DISM /Online /Cleanup-Image /RestoreHealth then sfc /scannow. This catches CBS log corruption before it causes problems.
  • Don't interrupt updates: If you shut down or pull the plug during an update, you're begging for cache corruption. Let it finish, even if it takes an hour.

One last thing: if you're on a metered connection and Windows Update keeps failing with 0x80070002, check that your date and time are correct. Yes, really. A clock that's off by more than a few minutes can cause SSL certificate validation failures that Windows misreports as a missing file. Auto-sync your time in Settings > Time & Language > Date & Time, and you're done.

Was this solution helpful?