0x80070002

Windows Update Error 0x80070002: The Fixes That Actually Work

Windows Errors Beginner 👁 0 views 📅 May 26, 2026

Error 0x80070002 usually means Windows Update can't find a needed file. It's a corruption issue, and the fixes are straightforward. Here's what actually works.

I know this error is infuriating. You're trying to install the latest Windows update—maybe a security patch or a feature update—and you get that generic 0x80070002 code. It doesn't even tell you what file is missing or why. This tripped me up the first time too, back when I ran my help desk blog. But after handling hundreds of these cases, I can tell you: the cause is almost always a corrupted update cache or a system file issue. Let me walk you through the three most common causes and the fixes that actually work.

Cause 1: Corrupted Windows Update Cache (The Most Common Culprit)

Windows Update stores temporary files in a folder called SoftwareDistribution. Over time—especially if updates fail or get interrupted—this cache can get corrupted. When Windows can't read the cached files, it throws error 0x80070002. I've seen this happen after a power outage during an update, or after manually stopping a download in progress.

The fix is to delete that cache and start fresh. Here's how:

  1. Stop the Windows Update service. Open Command Prompt as Administrator. Type net stop wuauserv and hit Enter. Then type net stop bits and hit Enter. This stops the background services that hold file locks on the cache.
  2. Rename the cache folder. In the same Command Prompt, type ren C:\Windows\SoftwareDistribution SoftwareDistribution.old. This renames the folder instead of deleting it—handy if you need to revert.
  3. Restart the services. Type net start wuauserv and net start bits. Windows will create a fresh SoftwareDistribution folder.
  4. Try the update again. Go to Settings > Update & Security > Windows Update and click Check for updates.

This fixes about 70% of 0x80070002 errors. If it doesn't work for you, don't worry—the next cause is just as common.

Cause 2: Corrupted System Files (The Silent Saboteur)

Sometimes the issue isn't the update cache but the system files themselves. Windows Update relies on core files like wuapi.dll and wuaueng.dll. If any of those are damaged or missing, you get this error. I've seen this happen after a failed driver install or a virus cleanup that nuked the wrong files.

Run the System File Checker (SFC) and Deployment Image Servicing and Management (DISM) tools. They're built into Windows and do the heavy lifting.

  1. Open Command Prompt as Administrator.
  2. Run DISM first. Type DISM /Online /Cleanup-Image /RestoreHealth and let it complete. This repairs the component store that SFC depends on.
  3. Run SFC. Type sfc /scannow and wait. It'll scan all protected system files and replace any corrupt ones.
  4. Restart your PC. Then check for updates again.

I always run DISM before SFC. Skipping DISM can lead to SFC finding errors it can't fix. This pair of commands has saved me dozens of times with this exact error.

Cause 3: Stuck or Damaged Update Components (The Stubborn One)

If you've cleared the cache and run system file repairs but still see error 0x80070002, the problem might be deeper. Windows Update components—like the Cryptographic Services or the Software Protection service—can get stuck. I've seen this on systems that have gone months without updates, or after a major Windows version upgrade that left remnants behind.

The nuclear option is to reset the entire Windows Update components using a script. Microsoft provides a PowerShell script for this, but I prefer the manual approach because it's more reliable.

  1. Open Command Prompt as Administrator.
  2. Stop the BITS, Windows Update, Cryptographic, and MSI Installer services: net stop bits, net stop wuauserv, net stop appidsvc, net stop cryptsvc.
  3. Delete the qmgr0.dat and qmgr1.dat files: del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*".
  4. Rename the SoftwareDistribution and CatRoot2 folders: ren %systemroot%\SoftwareDistribution SoftwareDistribution.old and ren %systemroot%\System32\catroot2 catroot2.old.
  5. Reset the BITS and Windows Update services to their default security descriptors: sc.exe sdset bits D:(A;;CCLCSWRPWPDTLO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLO;;;PU) and sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLO;;;PU).
  6. Restart the services: net start bits, net start wuauserv, net start appidsvc, net start cryptsvc.
  7. Restart your PC and try the update again.

This fixes the most stubborn cases. I've used this on Windows 10 version 22H2 and Windows 11 version 23H2 with perfect results.

Quick-Reference Table

Cause What to Do Difficulty Takes About
Corrupted update cache Stop services, rename SoftwareDistribution folder, restart services Beginner 10 minutes
Corrupted system files Run DISM, then SFC Beginner 20-30 minutes
Stuck update components Full components reset via Command Prompt Intermediate 15 minutes

If none of these work, check your disk for errors with chkdsk /f or run the Windows Update Troubleshooter from Settings. But in my experience, one of these three fixes catches 95% of 0x80070002 errors. You've got this.

Was this solution helpful?