0x80070002

Fix 0x80070002 Windows Update missing files error

Windows Errors Intermediate 👁 1 views 📅 May 27, 2026

Windows Update hits 0x80070002 when it can't find expected files. Here's the direct fix and why it works.

Yeah, the 0x80070002 error is annoying — you click 'Check for updates' and it just sits there or fails. But it's not your hardware. It's Windows Update's cache getting confused. Here's the fix.

The Direct Fix: Reset Windows Update components

  1. Open Command Prompt as Administrator. Hit the Start key, type cmd, right-click it, choose 'Run as administrator'.
  2. Stop the update services. Run these one at a time:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Rename the cache folders. This forces Windows to rebuild them:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
  4. Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
  5. Restart your PC and check for updates again.

That's it. In 90% of cases, this kills the error. The update will download fresh files into the new SoftwareDistribution folder and the old one sits there as a backup you can delete later if everything works.

Why this works

The 0x80070002 error code means 'The system cannot find the file specified.' Windows Update keeps its downloaded files in C:\Windows\SoftwareDistribution. When that folder gets corrupted — maybe from a failed update, a disk write error during a power loss, or even third-party antivirus locking files mid-download — Windows can't locate what it needs.

What's actually happening here is the update database (stored in catroot2) holds a list of files it expects. If a single file is missing or truncated, the whole update process stops with that error. Renaming both folders forces Windows to recreate them from scratch on the next check. It's like clearing a stuck cache in a web browser, but for the operating system's package manager.

You don't need to delete the folders — renaming them is safer. If something goes wrong, you can always rename them back. But I've never seen that happen. Once the folders are rebuilt, the update check starts fresh and finds the correct files from Microsoft's servers.

Less common variations of this error

Corrupted system files

Sometimes the problem isn't just the cache. Some core system files are genuinely corrupted — maybe from a disk error or a failed driver install. Run these two commands after resetting the services:

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

sfc /scannow checks and repairs protected system files. DISM /RestoreHealth fixes the component store that SFC uses as its source. Run SFC first — if it fails, DISM fixes its source, then SFC runs again clean. I've seen this sequence fix 0x80070002 after the cache reset alone didn't work.

Disk space or permissions

If the update cache reset works temporarily but the error comes back, check your disk space. Windows Update needs room to download and stage updates — I'd say at least 20GB free on the system drive. Also check that C:\Windows hasn't got strange permissions. Run icacls C:\Windows — the output should show BUILTIN\Administrators and NT AUTHORITY\SYSTEM with full control. If a third-party security tool locked down permissions, that alone triggers 0x80070002 because the update process can't write temporary files.

Third-party antivirus interference

Some antivirus suites — especially McAfee and Norton — hook into file operations and block Windows Update from writing to SoftwareDistribution. Temporarily disable real-time protection or uninstall the antivirus completely (not just disable it, some leave filters active) and test the update. If it works, you've found the culprit. Switch to Windows Defender — it's actually good now and doesn't conflict with the OS's own update mechanism.

Update database corruption

In rare cases, the catroot2 database gets deeper corruption that renaming doesn't fix. You can rebuild it manually by deleting the contents after stopping the Cryptographic Services. But I'd skip that — instead run the Windows Update Troubleshooter from Settings > Update & Security > Troubleshoot > Additional troubleshooters. It automates the same steps but with some extra registry checks. If that still fails, a repair install (In-place Upgrade) using the Windows 10 or 11 Media Creation Tool is your nuclear option. It reinstalls the OS while keeping your files.

Prevention

The 0x80070002 error comes down to one thing: don't interrupt updates. Let Windows Update finish, even if it takes an hour. If you have to shut down, use the 'Update and restart' option — never force power off during the 'Getting Windows ready' phase. That's when files are being staged, and an interruption mid-write is how cache corruption starts.

Also keep your system drive healthy. Run chkdsk C: /f once a month to catch disk errors before they corrupt update files. And if you use disk cleanup tools (CCleaner, BleachBit), don't let them touch the SoftwareDistribution folder. That's Windows' territory.

Most people fix this error once and never see it again. But if you're the unlucky type who gets it every few months, it's worth checking your disk health with CrystalDiskInfo or your manufacturer's diagnostic tool. A failing drive can corrupt files silently, and 0x80070002 is often the first symptom.

Was this solution helpful?