0x80070002

Windows Update Error 0x80070002 Fix – Stop the Loop

Windows Update fails with this error when it can't find a needed file. Usually fixable in 30 seconds by clearing the cache.

What’s the 0x80070002 Error?

You see this error when Windows Update tries to install something, but it can’t locate a file it expects. The file might be corrupted, partially downloaded, or missing from the cache folder. I’ve seen it happen most often after a failed update attempt — like when you shut down your PC mid-update, or your internet dropped during download. The fix is almost always the same: clear out the junk and let Windows start fresh.

Let’s go step by step. Start with the simplest fix — it works 80% of the time. If that doesn’t cut it, move to the next one.

Quick Fix (30 seconds) — Clear the Update Cache

This is the first thing I try on any tech’s machine. It’s safe, fast, and doesn’t require any registry editing.

  1. Press Windows Key + R to open the Run box.
  2. Type services.msc and hit Enter. You’ll see a list of services.
  3. Scroll down to Windows Update. Right-click it and select Stop. Leave the window open. You’ll start it again later.
  4. Open File Explorer. In the address bar, type C:\Windows\SoftwareDistribution and press Enter.
  5. Select all files and folders inside (Ctrl + A), then delete them (Delete key). You might get a warning about files in use — that’s normal. Just skip those by checking “Do this for all current items” and clicking “Skip” if prompted.
  6. Go back to the Services window. Right-click Windows Update again and select Start.
  7. Close the Services window. Now open Windows Update and try the update again.

What you should see: After starting the service, the SoftwareDistribution folder should be mostly empty (except maybe a “DataStore” folder). The update should download fresh files and install without the error. If it still fails, move to the moderate fix.

Moderate Fix (5 minutes) — Run the Built-in Update Troubleshooter

Windows includes a tool that automates the fix. I’ve had mixed luck with it, but when you’re stuck, it’s worth a shot.

  1. Click the Start button, type Troubleshoot settings, and open it.
  2. On the right, click Additional troubleshooters (Windows 10) or Other troubleshooters (Windows 11).
  3. Find Windows Update in the list and click Run the troubleshooter.
  4. Follow the prompts. It will check for common issues like corrupted cache or misconfigured services. Let it finish — this takes about 2 minutes.
  5. If it finds and fixes something, restart your PC. Then try updating again.

What you should see: The troubleshooter will say something like “Windows Update components repaired” or “Corrupt files fixed.” If it says “Troubleshooter couldn’t identify the problem,” that’s normal too — move to the advanced fix.

Advanced Fix (15+ minutes) — Run SFC and DISM Scans

This is where we check if system files are the real problem. The 0x80070002 error can also pop up if Windows core files are damaged. I’ve fixed stubborn cases this way.

  1. Open an admin Command Prompt. Click Start, type cmd, right-click Command Prompt, and choose Run as administrator.
  2. First, run the System File Checker. Type sfc /scannow and press Enter. This scans protected system files and replaces bad ones. Let it run — it takes 10-15 minutes. Don’t close the window.
  3. When it finishes, you’ll see one of three messages: “Windows Resource Protection did not find any integrity violations” (good), “Windows Resource Protection found corrupt files and successfully repaired them” (good), or “Windows Resource Protection found corrupt files but was unable to fix some of them” (needs more work). If it’s the last one, proceed to DISM.
  4. Still in that admin Command Prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This uses Windows Update to fix the image. It takes 15-20 minutes depending on your internet speed.
  5. After DISM finishes, run sfc /scannow again. This second pass often finds and fixes remaining issues.
  6. Restart your PC. Try Windows Update again.

What you should see: After the DISM command, you’ll see “The restoration operation completed successfully.” Then the second SFC scan should report no violations. At this point, the update should install cleanly. If it doesn’t, check for third-party antivirus interference — disable it temporarily and retry.

One Last Thing — Check Disk Space

Sometimes the 0x80070002 error is a disk space issue in disguise. Windows Update needs room to download and extract updates. If your C: drive has less than 10 GB free, clear some space. Delete temporary files, empty the Recycle Bin, or run Disk Cleanup by typing Disk Cleanup in the Start menu. Try the update again after freeing up space.

That’s it. Start with the quick cache clear — it’s the real fix 9 times out of 10. If not, the SFC/DISM combo has never let me down for this error.

Related Errors in Windows Errors
Windows 11 taskbar icons gone after update? Quick fix 0XC01A001F STATUS_LOG_DEDICATED 0XC01A001F: Log Dedicated Error Fix 0XC00D102A Fix NS_E_WMP_PNG_UNSUPPORTED_COMPRESSION (0xC00D102A) Fix blurry apps in Windows 10/11 with high DPI scaling

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.