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
- Open Settings (Windows + I)
- Go to System > Troubleshoot > Other troubleshooters
- Click Run next to Windows Update
- Follow the on-screen instructions and apply any fixes
Step 2: Clear the SoftwareDistribution Folder
- Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Terminal (Admin))
- Stop the Windows Update services by typing these commands, pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserver - Rename the SoftwareDistribution folder:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old - Rename the Catroot2 folder (optional but helpful):
ren C:\Windows\System32\catroot2 Catroot2.old - Restart the services:
net start wuauservnet start cryptSvcnet start bitsnet start msiserver - Close Command Prompt and try Windows Update again
Step 3: Run System File Checker (SFC) and DISM
- Open Command Prompt as Administrator
- Run SFC scan:
sfc /scannow - Wait for the scan to complete. If errors are found, they may be automatically repaired
- Run DISM to repair system image:
DISM /Online /Cleanup-Image /RestoreHealth - Restart your computer
Step 4: Check Disk Space
- Open File Explorer and check free space on C: drive
- Ensure at least 20 GB of free space for major updates
- 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