Fix Windows 10/11 Update Errors by Rebuilding the SoftwareDistribution Cache
Difficulty: Intermediate | Time Required: 15 minutesWindows Update is usually reliable, but when its local download/cache database gets corrupted, you can run into repeated failures, stuck “Downloading/Installing” states, or error codes like 0x80070002, 0x800f081f, 0x8024a105, or 0x80073712. A proven fix is to rebuild the SoftwareDistribution cache—Windows’ staging area for update downloads and metadata—so Windows Update can start fresh.
This tutorial walks you through safely stopping the update services, renaming the cache folders, restarting services, and triggering a new update scan in Windows 10 (21H2/22H2) and Windows 11 (21H2/22H2/23H2/24H2).
Prerequisites
Before you begin, make sure you have:- Administrator access to the PC
- A stable internet connection (after rebuilding, Windows needs to re-download some update data)
- 5–10 minutes of downtime where Windows Update won’t be running
- (Recommended) A quick restart or saving open work—some steps stop system services
Note: This process does not uninstall updates you already installed. It mainly clears update downloads and update cache metadata.
Step-by-Step: Rebuild the SoftwareDistribution Cache
You can do this using either Command Prompt or PowerShell (Admin). The commands are similar. Choose one method and follow it exactly.Step 1) Open an elevated terminal (Admin)
- Right-click Start.
- Choose Windows Terminal (Admin).
- On some Windows 10 systems, choose Command Prompt (Admin) or PowerShell (Admin).
- If prompted by UAC, click Yes.
Step 2) Stop Windows Update-related services
In the elevated terminal, run these commands:Command Prompt / PowerShell:
Code:
net stop wuauserv
net stop bits
net stop cryptsvc
net stop msiserver
- wuauserv = Windows Update service
- BITS = Background Intelligent Transfer Service (handles downloads)
- cryptsvc = Cryptographic Services (update signature/cat handling)
- msiserver = Windows Installer (sometimes involved with update components)
Warning: If any service reports it “could not be stopped,” reboot and try again. Updates may be mid-flight, and Windows will refuse to stop services while they’re busy.
Step 3) Rename the SoftwareDistribution folder (recommended approach)
Renaming is safer than deleting—it gives you a rollback option.Run:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldIf you get “Access is denied” or “The system cannot find the file specified,” double-check:
- You are running as Administrator
- The update services are actually stopped
- The folder exists at
C:\Windows\SoftwareDistribution
Note: After Windows Update works again for a few days, you can deleteC:\Windows\SoftwareDistribution.oldto reclaim disk space.
Step 4) Also rebuild the Catroot2 folder (often helps with signature/catalog issues)
The Catroot2 folder stores update catalog/signature data. Corruption here can cause updates to fail verification.Run:
ren C:\Windows\System32\catroot2 catroot2.oldImportant: Rename catroot2 (with a “2”). Do not renamecatroot(without the 2).catrootis used differently and shouldn’t be touched for this fix.
Step 5) Start the services again
Now restart what you stopped:
Code:
net start msiserver
net start cryptsvc
net start bits
net start wuauserv
C:\Windows\SoftwareDistributionC:\Windows\System32\catroot2
Step 6) Trigger a new Windows Update check
- Go to Settings:
- Windows 11: Settings → Windows Update
- Windows 10: Settings → Update & Security → Windows Update
- Click Check for updates.
- Let Windows re-scan and re-download any needed files.
Tip: The first scan after rebuilding may take longer than usual. That’s expected because Windows is rebuilding local update metadata.
Step 7) (Optional) Reboot and re-check updates
If you still see odd behavior (stuck at 0%, “pending install,” etc.):- Restart your PC.
- Return to Windows Update and click Check for updates again.
Tips, Notes, and Troubleshooting
Tip: Use Disk Cleanup afterward (optional)
If your system drive is low on space, you can remove leftover update files safely:- Open Disk Cleanup → Clean up system files
- Check:
- Windows Update Cleanup
- Delivery Optimization Files
- Temporary files
If you get “The process cannot access the file” errors
This usually means a service didn’t stop completely.Try:
- Re-run the stop commands.
- Reboot and repeat Steps 1–6.
- If needed, run the rename commands again after reboot.
If Windows Update still fails after rebuilding the cache
Rebuilding SoftwareDistribution fixes a large percentage of common issues, but not everything. If errors persist:- Run the built-in Windows Update troubleshooter
- Windows 11: Settings → System → Troubleshoot → Other troubleshooters → Windows Update
- Windows 10: Settings → Update & Security → Troubleshoot → Additional troubleshooters → Windows Update
- Run system file checks (common next step)
Open an elevated terminal and run:
sfc /scannow
Then (especially if SFC reports repairs or can’t fix everything):
DISM /Online /Cleanup-Image /RestoreHealth - Check your date/time and time zone
Incorrect time can break certificate checks and update validation. - Check for third-party interference
Some security suites or “system optimizer” tools can block update downloads or modify update components. Temporarily disabling them (or clean booting) can help isolate the cause.
What changes after you rebuild SoftwareDistribution?
- Windows may “forget” some update history entries shown in Settings → Windows Update → Update history (installed updates remain installed, but the display list can change).
- Updates may re-download, increasing bandwidth usage temporarily.
- Windows Update scans can take longer the first time.
Conclusion
Rebuilding the SoftwareDistribution cache is one of the most effective, low-risk ways to fix stubborn Windows 10/11 update errors caused by corrupted downloads or update metadata. By stopping update services, renaming the cache folders, and restarting services, you force Windows Update to rebuild its working data from scratch—often resolving repeated failures, stuck updates, and common error codes in under 15 minutes.Key Takeaways:
- Resets Windows Update’s local download/cache database without uninstalling installed updates
- Fixes many common update errors caused by corrupted cache files or catalogs
- Safe approach: rename folders (rollback-friendly) rather than deleting immediately
- Works on both Windows 10 (21H2/22H2) and Windows 11 (21H2–24H2)
This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.