Windows Updates

Fix Windows Update error 0x80070002

Practical Windows guide: fix Windows Update error 0x80070002 without the usual guesswork.

10 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

Warning

Use an administrator account for these steps, and keep a recent backup before making repair or security changes.

What you will achieve

Fix Windows Update error 0x80070002 (file not found) by clearing the SoftwareDistribution cache and restarting update services.

1) Run the built-in troubleshooter

  1. Open Settings → System → Troubleshoot → Other troubleshooters.
  2. Run Windows Update and apply any fixes it suggests.
  3. Reboot and retry Settings → Windows Update → Check for updates.

2) Stop services and rename the cache folder

Open Admin PowerShell (Win + X → Terminal (Admin)):

net stop wuauserv
net stop bits
net stop cryptsvc
Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.old -ErrorAction SilentlyContinue
Rename-Item C:\Windows\System32\catroot2 catroot2.old -ErrorAction SilentlyContinue
net start cryptsvc
net start bits
net start wuauserv

3) Run DISM and SFC if error persists

DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
  1. Reboot after each command completes.
  2. Retry Windows Update and note if the error code changes.

4) Reset Windows Update components (last resort)

  1. See our Reset Windows Update components guide for the full scripted reset.
  2. If 0x80070002 appeared after a failed feature update, consider uninstalling the problematic update from Settings → Windows Update → Update history → Uninstall updates.

5) Check CBS logs for root cause

  1. Open C:\Windows\Logs\CBS\CBS.log in Notepad — search for Failed near the timestamp of the error.
  2. Common follow-on codes: missing manifest files in SoftwareDistribution\Download.

6) In-place repair upgrade (no data loss)

  1. Mount Windows ISO, run setup.exe from the source, choose upgrade — repairs system files while keeping apps and files.

7) Clear pending.xml corruption

  1. Stop Windows Update services, rename C:\Windows\WinSxS\pending.xml if present and blocking servicing.
  2. Run DISM before SFC — order matters for component store repair.

8) Windows Update log (modern)

PowerShell: Get-WindowsUpdateLog merges ETL traces into C:\Windows\WindowsUpdate.log — search for 0x80070002 and preceding HRESULT.

  1. Common paired codes: 80240034 (not found) when catalog sync fails.
  2. Ensure system date/time correct — TLS to Windows Update fails on wildly wrong clocks.

Verification checklist

After repair, Settings → Windows Update should reach Checking without instant failure. Log timestamp and KB number if a new code appears — chain errors often reveal the underlying corrupt package.

  1. Reboot once after changes that affect services, drivers, or firmware.
  2. Confirm the original problem is resolved under normal daily use, not only immediately after the fix.
  3. Note date, Windows version (Settings → System → About), and what changed in your personal runbook for next time.

Related guides

0x80070002 error update windows