sodcalculator

10 Tech How-To

Fixed Windows 11 Error 0x80070002

Guide 10-12207 · Updated · Step by step

Windows 11 error 0x80070002 usually means Windows Update or the Microsoft Store cannot find a required file, often due to corrupted update cache or system files. The fix is to clear the SoftwareDistribution folder, run the System File Checker, and restart the Windows Update service.

What Causes Error 0x80070002?

This error code translates to “ERROR_FILE_NOT_FOUND” in Windows. It appears most often during Windows Update, but you may also see it when installing apps from the Microsoft Store, running the Update Troubleshooter, or upgrading to a new feature update. The underlying causes are usually:

  • Corrupted or incomplete files in the C:\Windows\SoftwareDistribution folder, where Windows stores downloaded updates.
  • System file corruption, especially in the Windows Update component itself.
  • Third-party antivirus or security software interfering with the update process.
  • Insufficient disk space or a disk error on the system drive.
  • Outdated or conflicting drivers, particularly storage or network drivers.

While the error message is generic, the fix is almost always about resetting the update components and repairing system files.

How to Fix Error 0x80070002 (Step-by-Step)

Follow these steps in order. Most users resolve the issue with the first two steps, but if the error persists, continue through the rest.

1. Run the Windows Update Troubleshooter

Windows 11 includes a built-in troubleshooter that can automatically detect and fix common update problems.

  1. Open Settings (Win + I) and go to System > Troubleshoot > Other troubleshooters.
  2. Find Windows Update and click Run.
  3. Follow the on-screen instructions. It may take a few minutes.

If the troubleshooter finds issues, it will attempt to fix them automatically. If it doesn’t, move to the next step.

2. Clear the SoftwareDistribution Folder

This folder holds temporary update files. If any file is corrupted or missing, the update process fails with 0x80070002. Clearing it forces Windows to re-download the updates.

  1. Press Win + R, type cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
  2. Stop the Windows Update service by typing: net stop wuauserv and press Enter.
  3. Also stop the Background Intelligent Transfer Service (BITS): net stop bits and press Enter.
  4. Open File Explorer and navigate to C:\Windows\SoftwareDistribution. Delete everything inside the folder. If you get a permission error, make sure the services are stopped.
  5. Restart the services: net start wuauserv and net start bits.
  6. Close Command Prompt and try Windows Update again.

If the folder cannot be deleted, you can rename it instead: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and then create a new folder with the same name. Windows will recreate the necessary subfolders automatically.

3. Run System File Checker (SFC) and DISM

System file corruption can cause the update components to fail. Use the built-in System File Checker to repair them.

  1. Open Command Prompt as administrator (as above).
  2. Run sfc /scannow and wait for it to finish. It may take 15-20 minutes.
  3. If SFC finds issues but cannot fix them, run DISM /Online /Cleanup-Image /RestoreHealth. This repairs the Windows image itself.
  4. Restart your PC and try updating again.

These commands are safe and do not affect your personal files.

4. Check Disk for Errors

Bad sectors or file system errors on the system drive can also trigger this error. Use the Check Disk utility:

  1. Open Command Prompt as administrator.
  2. Run chkdsk C: /f /r. You’ll be asked to schedule it for the next restart. Type Y and press Enter.
  3. Restart your PC. The scan will run before Windows starts and may take a while.

This checks for and repairs disk errors. If the scan finds problems, it will fix them automatically.

5. Temporarily Disable Third-Party Antivirus

Some security programs block update files from being written correctly. Temporarily disable your third-party antivirus (not Windows Defender) and try updating again. If it works, add Windows Update to the antivirus’s exclusion list or contact the vendor for guidance. Remember to re-enable your antivirus afterward.

6. Reset Windows Update Components Manually

If none of the above works, you can reset all update components at once. This is a more thorough version of step 2.

  1. Open Command Prompt as administrator.
  2. Run these commands one by one, pressing Enter after each:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

The catroot2 folder stores update signatures. Renaming it forces Windows to recreate it. This is safe and does not affect your installed programs.

Why Does This Error Happen on Windows 11 Specifically?

Windows 11 uses the same update mechanism as Windows 10, but the update process is more aggressive with feature updates and cumulative patches. The error 0x80070002 is not unique to Windows 11; it also occurs on Windows 10 and even Windows 7. However, because Windows 11 updates are delivered more frequently and in smaller pieces, a missing or corrupted file in the update cache is more likely to cause a failure. The error is also common after a failed upgrade attempt, where the system is left in an inconsistent state.

Common Mistakes When Fixing This Error

  • Not stopping the services before deleting the SoftwareDistribution folder. Windows will recreate the files immediately if the service is running, so the deletion appears to do nothing.
  • Using Command Prompt without administrator rights. You must run it as administrator, otherwise you’ll get “Access denied” errors.
  • Deleting the entire SoftwareDistribution folder instead of just its contents. While renaming is safer, deleting the folder itself can cause issues. Only delete the contents or rename the folder.
  • Skipping DISM. If SFC cannot repair files, DISM is the next step. Running SFC alone often fails to fix the underlying image corruption.
  • Assuming it’s a driver issue. While drivers can cause update failures, 0x80070002 is almost always about missing files. Don’t waste time updating drivers until you’ve tried the steps above.

When to Consider a Repair Install

If you’ve tried all the steps and the error persists, you may have deeper system corruption that the built-in tools cannot fix. A repair install (also called an in-place upgrade) reinstalls Windows 11 while keeping your files, settings, and installed apps. To do this:

  1. Download the Windows 11 Installation Assistant from Microsoft’s official website.
  2. Run it and choose Upgrade this PC now.
  3. Follow the prompts. It will take about an hour.

This is a safe procedure, but it’s a good idea to back up your important files first, just in case. If the repair install doesn’t work, a full reset (Settings > System > Recovery > Reset PC) is the last resort, but it will remove your apps and possibly your files.

Frequently Asked Questions

Will error 0x80070002 damage my computer?

No. It only prevents updates from installing. Your computer will continue to work normally, but you won’t receive security updates until the error is resolved, which leaves you vulnerable. Fix it as soon as possible.

Can I ignore this error and just use Windows 11?

You can, but it’s not recommended. Without updates, you miss critical security patches and bug fixes. Over time, your system may become unstable or exposed to known vulnerabilities. It’s best to fix the error.

Why does the error appear when I try to install apps from the Microsoft Store?

The Microsoft Store uses the same update infrastructure as Windows Update. If the update cache is corrupted, the Store may also fail to download or install apps. The same fixes (clearing SoftwareDistribution, running SFC) usually work for Store errors as well.

Is it safe to delete the SoftwareDistribution folder?

Yes, as long as you stop the Windows Update service first. The folder only contains temporary update files. Windows will recreate it automatically when you restart the service or run Windows Update. Renaming it to SoftwareDistribution.old is even safer, as you can delete the old folder later if everything works.

How long does the SFC scan take?

Usually 15-20 minutes, but it can take longer on slower systems. You can continue using your computer during the scan, but it’s better to let it run without interruption. If it gets stuck, wait at least 30 minutes before restarting.

Does this error affect Windows 10 as well?

Yes, 0x80070002 is a common Windows Update error on both Windows 10 and Windows 11. The fixes are identical. If you’re on Windows 10, you can follow the same steps.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →