How to Reset Windows Update Cache: Step-by-Step Guide
In this article
Resetting the Windows Update cache clears corrupted or outdated temporary files that may be preventing your system from downloading or installing updates properly. This process stops the Windows Update service, deletes the contents of the SoftwareDistribution folder where update files are stored, and restarts the service to force a fresh connection to Microsoft's servers. It’s a standard troubleshooting step recommended by Microsoft for resolving update errors such as 0x80070002, 0x80070003, or endless update loops. Before proceeding, ensure you’re logged in with an administrator account and have stable internet access to re-download updates after the reset.
What You'll Need
- Administrator access to the Windows computer
- Stable internet connection (updates will re-download after reset)
- Approximately 10–15 minutes of downtime (computer may restart)
- Optional: Notepad or text editor to copy commands
Step-by-Step
- Close all open programs and save your work. Some steps require stopping system services, and unsaved data may be lost.
- Press the Windows key, type "cmd", right-click on "Command Prompt", and select "Run as administrator". Confirm the User Account Control (UAC) prompt if it appears.
- In the elevated Command Prompt window, type the following command and press Enter to stop the Windows Update service:
net stop wuauserv
Wait for the message "The Windows Update service was stopped successfully." - Next, stop the Cryptographic Services, which verifies update authenticity. Type:
net stop cryptsvc
Wait for confirmation that the service stopped. - Stop the Background Intelligent Transfer Service (BITS), which manages download processes. Enter:
net stop bits
Again, wait for the success message. - Navigate to the SoftwareDistribution folder by opening File Explorer and going to:
C:\Windows\SoftwareDistribution\
This folder stores all temporary Windows Update files. - Select all contents inside the folder (press Ctrl+A), then press Delete or right-click and choose Delete. If prompted for administrator permission, confirm it. If any file refuses to delete, skip it—do not force deletion.
- Next, clear the catroot2 folder, which stores cryptographic catalog files used by updates. Return to the Command Prompt and type:
net stop trustedinstaller
Then type:del /q /s %windir%\System32\catroot2\*
This deletes the catalog cache safely. - Restart the services in reverse order. First, restart BITS:
net start bits - Then restart Cryptographic Services:
net start cryptsvc - Finally, restart the Windows Update service:
net start wuauserv - Close the Command Prompt window. The cache is now reset. Open Settings > Update & Security > Windows Update and click "Check for updates" to begin fresh downloads.
Common Mistakes
- Not running Command Prompt as administrator: Without elevated privileges, services won’t stop and files can’t be deleted, leading to access denied errors.
- Deleting the SoftwareDistribution folder itself: Only delete the contents inside the folder, not the folder. Windows recreates the folder structure automatically if missing, but it’s safer to preserve it.
- Skipping service stops: Attempting to delete files while services are running causes errors or incomplete deletions, leaving corrupted data behind.
- Forcing deletion of locked files: Some files are in use even after stopping services. Using tools to force delete can destabilize the system. Skip such files; they’ll be replaced automatically.
- Not restarting all services: Forgetting to restart one or more services prevents updates from functioning. Always verify all three services are running.
Tips
- Create a system restore point before starting, so you can revert if something goes wrong.
- Use the DISM and SFC tools after resetting the cache: run
dism /online /cleanup-image /restorehealthandsfc /scannowto repair system files that might be contributing to update issues. - If you frequently encounter update problems, consider temporarily disabling third-party antivirus software during the update process.
- After resetting, allow ample time for updates to download—they may take longer the first time due to fresh caching.
- Use PowerShell instead of Command Prompt if preferred; the same commands work in an elevated PowerShell session.
Troubleshooting
If the cache reset doesn’t resolve the issue, try the following:
- Access denied errors: Ensure you’re using an administrator account and ran Command Prompt as administrator. Check group policy settings if in a corporate environment.
- Services won’t stop or start: Reboot the computer and retry the steps. If services remain stuck, use Services.msc to manually stop/start them.
- No updates found after reset: Wait a few minutes and retry. If still failing, run the Windows Update Troubleshooter (Settings > Update & Security > Troubleshoot).
- Update errors persist: Combine the cache reset with a system file check. Run
sfc /scannowanddism /online /cleanup-image /restorehealthin sequence. - Slow update downloads: This is normal after a reset. Avoid interrupting the download process. Check internet speed and background bandwidth usage.
Frequently Asked Questions
Will resetting the cache delete my personal files?
No. The cache only contains temporary update data. Your documents, apps, and settings remain unaffected.
Do I need to reset the cache after every Windows update?
No. Only do this when experiencing update failures or errors. Routine updates do not require cache resets.
Can I reset the cache in Safe Mode?
Yes. Safe Mode can help if system conflicts are preventing normal cache deletion. Follow the same steps in Safe Mode with Command Prompt as administrator.
How often should I reset the Windows Update cache?
Only when necessary—such as when updates fail repeatedly. It’s not a preventive maintenance task.
Does resetting the cache remove installed updates?
No. Installed updates remain. The reset only clears files related to pending or failed downloads.
What if the SoftwareDistribution folder is empty?
An empty folder may indicate another issue. Run the Windows Update Troubleshooter or use DISM to repair the component store.