0x80070002

Fix Windows Update Error 0x80070002

Windows Update error 0x80070002 occurs when update files are missing or corrupted. This guide provides step-by-step fixes including clearing the SoftwareDistribution folder and running DISM and SFC scans.

Symptoms

When attempting to install Windows updates, you may encounter the error code 0x80070002. Common symptoms include:

  • Windows Update fails with the message "Some updates were not installed"
  • The error appears in Windows Update history as failed with code 0x80070002
  • Updates may download partially but fail during installation
  • System may become stuck checking for updates

Root Causes

Error 0x80070002 typically indicates that Windows Update cannot find or access required files. Common causes include:

  • Corrupted update cache: The SoftwareDistribution folder contains damaged or incomplete update files
  • System file corruption: Critical Windows system files are missing or corrupted
  • Windows Update service issues: Services like BITS (Background Intelligent Transfer Service) or Windows Update service are not running correctly
  • Disk space shortage: Insufficient free space on the system drive prevents update installation
  • Third-party interference: Antivirus or firewall software blocks update downloads

Step-by-Step Fix

Step 1: Run the Windows Update Troubleshooter

  1. Open Settings (Windows + I)
  2. Go to System > Troubleshoot > Other troubleshooters
  3. Click Run next to Windows Update
  4. Follow the on-screen instructions and apply any fixes

Step 2: Clear the SoftwareDistribution Folder

  1. Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Terminal (Admin))
  2. Stop the Windows Update services by typing these commands, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  3. Rename the SoftwareDistribution folder:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  4. Rename the Catroot2 folder (optional but helpful):
    ren C:\Windows\System32\catroot2 Catroot2.old
  5. Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
  6. Close Command Prompt and try Windows Update again

Step 3: Run System File Checker (SFC) and DISM

  1. Open Command Prompt as Administrator
  2. Run SFC scan:
    sfc /scannow
  3. Wait for the scan to complete. If errors are found, they may be automatically repaired
  4. Run DISM to repair system image:
    DISM /Online /Cleanup-Image /RestoreHealth
  5. Restart your computer

Step 4: Check Disk Space

  1. Open File Explorer and check free space on C: drive
  2. Ensure at least 20 GB of free space for major updates
  3. Use Disk Cleanup to remove temporary files if needed

Alternative Fixes

  • Reset Windows Update components manually: Use a script from Microsoft or manually reset via Command Prompt (advanced users)
  • Disable third-party antivirus temporarily: Some security software can interfere with updates
  • Use Media Creation Tool: Download the latest Windows version and perform an in-place upgrade to fix update issues
  • Check for pending updates: Sometimes a pending restart or previous failed update blocks new ones

Prevention

  • Regular maintenance: Run SFC and DISM scans monthly to keep system files healthy
  • Keep free space: Maintain at least 15-20% free space on your system drive
  • Use reliable antivirus: Ensure security software is compatible with Windows updates
  • Install updates promptly: Don't delay updates for long periods to avoid cumulative issues
  • Create restore points: Before major updates, create a system restore point as a safety net
Related Errors in Windows Errors
0XC0220022 STATUS_FWP_ZERO_LENGTH_ARRAY (0XC0220022) fix 0XC01E051C Fix 0xC01E051C: OPM Protected Output Error in Windows 0X8004D081 XACT_E_CLERKEXISTS (0X8004D081) – CRM Clerk Missing Fix 0XC00D1B9F NS_E_INVALID_INPUT_LANGUAGE (0XC00D1B9F) Fix

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.