0x80070002

Fix Windows Errors: Stop Error Code 0x80070002 for Good

The 0x80070002 error appears during Windows Update or app installs. It's a file or folder missing issue. Here's the direct fix and why it works.

Yeah, that 0x80070002 error is a pain — it pops up right when you're trying to install an update or an app, and Windows just gives up. Let's get it sorted fast.

The Direct Fix: Clear Windows Update Cache

The most common cause of 0x80070002 is a corrupted or incomplete file in the Windows Update cache. That's the C:\Windows\SoftwareDistribution folder. When an update download gets interrupted or writes a bad file, Windows can't verify it, so it throws this error.

Here's what to do — and I'm being specific about the order because it matters.

  1. Open an elevated Command Prompt. Press Win, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Stop the Windows Update service and the background transfer service. Type these, pressing Enter after each:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

These commands stop the services that might be holding files open. If you skip this, the next step will fail with 'file in use'.

  1. Rename the SoftwareDistribution folder — don't delete it yet. That way, if something goes wrong, you can roll back.
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

Also rename the catroot2 folder, which stores update signatures:

ren C:\Windows\System32\catroot2 catroot2.old
  1. Restart the services you stopped:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
  1. Restart your PC, then try the update again. Windows will create a fresh SoftwareDistribution folder from scratch.

That clears the error in about 80% of cases. If you're still stuck, move to the next section.

Why This Works

What's actually happening here is that Windows Update relies on a set of files that must match a manifest. If any file in the download cache is truncated — say, your PC lost power mid-download, or the disk ran out of space — the update engine can't validate it, so it bails with 0x80070002. By renaming the entire folder, you force Windows to rebuild everything from nothing. The old folder is still there, but Windows ignores it. The reason renaming instead of deleting works is that it bypasses file-locking issues and gives you a safety net.

Less Common Variations and Their Fixes

Sometimes the cache isn't the culprit. Here are three other scenarios I've seen in the wild.

1. Missing System Volume Information Folder

If you get 0x80070002 during a system restore point creation, the issue might be that the C:\System Volume Information folder got corrupted or its permissions are wrong. The fix is to run a disk check:

chkdsk C: /r

That will scan for bad sectors and file system errors. Reboot and let it finish. This one's rare, but when it hits, it's the only thing that works.

2. Corrupted Component Store (CBS)

If the error shows up when you're trying to install a feature update or a language pack, the component store might be damaged. Use DISM to repair it:

DISM /Online /Cleanup-Image /RestoreHealth

Then run the System File Checker:

sfc /scannow

DISM fixes the underlying image, and SFC repairs system files that are already deployed. Run them in that order — SFC alone often fails if the source files are damaged.

3. App Install Failures

When 0x80070002 appears during an app install from the Microsoft Store, it's often because the app's dependency files are missing. Try resetting the Store cache with wsreset.exe. Run it from the Run dialog (Win+R), wait for the command prompt to close, and reopen the Store. That clears the Store's own cache, which is separate from the Windows Update one.

Prevention: Stop It Before It Starts

The root cause of 0x80070002 is almost always a file that got corrupted because of an interrupted operation. So prevention is about stability.

  • Keep your disk healthy — run chkdsk C: /f once a month. I know it sounds like homework, but it catches file system issues before they bite.
  • Make sure you have at least 15 GB of free space on the system drive. Updates need room to stage files, and when the disk fills up, downloads get cut off mid-write.
  • If your PC randomly shuts down during updates, that's a hardware or power issue. Check the PSU and run a memory test — because a corrupt file is often the first sign of failing RAM.

The cache-clearing fix is your go-to, and it'll resolve most cases in five minutes. If it doesn't, the DISM and SFC route covers the rest. You've got this.

Related Errors in Windows Errors
0X00003AB3 Fix ERROR_EVT_MESSAGE_NOT_FOUND (0x3AB3) in Event Viewer 0X80300103 Fix PLA_E_CREDENTIALS_REQUIRED 0x80300103 Error 0XC0020035 Fixing EPT_NT_CANT_PERFORM_OP (0XC0020035) on Windows Server 0X000021C8 Fix 0X000021C8: Duplicate UPN in Active Directory Forest

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.