Windows Update Error 0x80240020 – Complete Fix Guide (2026)
Table of Contents
- Why Windows Update Error 0x80240020 Happens
- 1. Restart Windows Update Services
- 2. Run the Windows Update Troubleshooter
- 3. Clear the SoftwareDistribution Folder
- 4. Run DISM and SFC Scans
- 5. Verify System Date and Time
- 6. Free Up Disk Space
- 7. Update Device Drivers
- 8. Reset Windows Update Components Manually
- 9. Advanced Troubleshooting
- Conclusion
- FAQ
Hub: Windows 11 Troubleshooting Hub
Quick Answer
Windows Update Error 0x80240020 is a common update failure that occurs when the Windows Update service encounters a configuration or connectivity issue. To fix it, restart the Windows Update services, run the built-in Windows Update Troubleshooter, clear the SoftwareDistribution folder, and run DISM and SFC scans. If the error persists, manually reset Windows Update components using the Microsoft-provided script or perform a system restore. For more Windows troubleshooting, visit our Windows 11 Troubleshooting Hub.
Why Windows Update Error 0x80240020 Happens
Windows Update Error 0x80240020 typically appears when Windows Update cannot complete the installation of a critical update due to corrupted system files, insufficient disk space, or service interruptions. This error is often associated with the WU_E_INSTALL_NOT_ALLOWED code, which indicates that the update is not allowed to be installed in the current system state. For official Microsoft documentation on this error code, visit the Microsoft Update Error Reference.
The error can be triggered by several factors: a paused or stopped Windows Update service, corrupted update cache in the SoftwareDistribution folder, insufficient storage on the system drive, incorrect system date and time, or conflicts with third-party antivirus software. It may also occur after a failed update attempt that leaves the system in an inconsistent state. Similar to other update errors like Windows 11 Update Stuck Fix and Windows Update Error 0x80073701, resolving this error often requires a combination of service restarts, cache clearing, and system repairs.
Before diving into fixes, ensure your system meets the minimum requirements for the pending updates. Check if you have enough free space on the system drive (at least 10 GB recommended) and that your internet connection is stable. For a broader overview of Windows update issues, refer to our Windows 11 Troubleshooting Hub.
⚠️ Warning: Never force shutdown or restart your PC while Windows Update is installing updates, as this can lead to system corruption. Always allow updates to complete or use the proper troubleshooting methods.
1. Restart Windows Update Services
The simplest and often most effective fix for Windows Update Error 0x80240020 is restarting the Windows Update services. This refreshes the service state and clears temporary glitches.
- Press Win + R, type services.msc, and press Enter.
- Locate Windows Update in the list. Right-click and select Restart.
- Also restart Background Intelligent Transfer Service (BITS) and Cryptographic Services.
- After restarting, close the Services window and attempt to check for updates again.
✅ Expected Result: The error may be resolved immediately, and Windows Update should proceed normally. If the error persists, move to the next method.
2. Run the Windows Update Troubleshooter
Windows includes a built-in troubleshooter specifically designed to diagnose and fix update-related issues. This tool can automatically detect and resolve common causes of Windows Update Error 0x80240020.
- Open Settings > System > Troubleshoot > Other troubleshooters.
- Find Windows Update and click Run.
- Follow the on-screen instructions and allow the tool to scan for issues.
- If the troubleshooter finds problems, apply the recommended fixes and restart your PC.
💡 Quick Tip: The troubleshooter can also be launched from Command Prompt with msdt.exe -id WindowsUpdateDiagnostic if you prefer a command-line approach.
3. Clear the SoftwareDistribution Folder
The SoftwareDistribution folder stores temporary update files. Corrupted files in this folder can cause Windows Update Error 0x80240020. Clearing it forces Windows to download fresh update files.
- Open Command Prompt as Administrator.
- Stop the Windows Update services by running:
net stop wuauserv net stop bits - Navigate to the SoftwareDistribution folder:
cd C:\Windows\SoftwareDistribution - Delete all contents of the folder:
del /f /s /q *.* - Restart the services:
net start wuauserv net start bits - Restart your PC and check for updates again.
⚠️ Warning: Deleting the SoftwareDistribution folder will remove your update history. Windows will rebuild it automatically. This is safe and does not affect system files.
4. Run DISM and SFC Scans
Corrupted system files are a common root cause of update errors. Running DISM (Deployment Imaging Service and Management Tool) and SFC (System File Checker) can repair these files and resolve Windows Update Error 0x80240020.
- Open Command Prompt as Administrator.
- First, run DISM:
DISM /Online /Cleanup-Image /RestoreHealth - Wait for the operation to complete (may take 10-15 minutes).
- Then run SFC:
sfc /scannow - After both scans finish, restart your PC and try updating again.
✅ Expected Result: SFC and DISM will repair corrupted system files. If they report successful repairs, the error is likely resolved. For further system health checks, see our How to Check RAM Health Windows 11 guide.
5. Verify System Date and Time
Incorrect system date and time settings can cause certificate validation failures, leading to Windows Update Error 0x80240020. Ensure your system clock is accurate.
- Right-click the time in the taskbar and select Adjust date and time.
- Turn on “Set time automatically” and “Set time zone automatically”.
- If the settings are already on, toggle them off and on again to force a sync.
- Click Sync now under Additional settings.
- Restart your PC and try Windows Update again.
🔁 Alternative Solution: If automatic sync fails, manually set the correct time and date, then restart the Windows Time service by running net start w32time in Command Prompt.
6. Free Up Disk Space
Insufficient disk space on the system drive (usually C:) can prevent updates from installing. Windows Update Error 0x80240020 may occur when the system cannot write temporary files due to low storage.
- Open Settings > System > Storage.
- Check the available space on your system drive. If it’s below 10 GB, free up space.
- Use the built-in Storage Sense to clean temporary files.
- Delete unnecessary large files, uninstall unused applications, and empty the Recycle Bin.
- After freeing space, restart and try updating again.
💡 Quick Tip: Use Disk Cleanup (run cleanmgr) to remove system files, including Windows Update cleanup, which can free up gigabytes of space.
7. Update Device Drivers
Outdated or incompatible drivers can interfere with Windows Update. While this is less common, it’s worth updating drivers, especially graphics and network drivers. For a complete guide, check our How to Update Drivers Windows 11 article.
- Open Device Manager (right-click Start).
- Expand categories and look for devices with yellow exclamation marks.
- Right-click each and select Update driver.
- If Windows doesn’t find updates, visit your PC or motherboard manufacturer’s website for the latest drivers.
- After updating, restart and try updating again.
❌ Common Mistake: Relying solely on Windows Update for driver updates. Always check the manufacturer’s support page for the most recent and stable drivers.
8. Reset Windows Update Components Manually
If the previous methods fail, a more thorough reset of Windows Update components can resolve Windows Update Error 0x80240020. This involves stopping services, renaming the SoftwareDistribution and Catroot2 folders, and restarting services.
- Open Command Prompt as Administrator.
- Run the following commands in sequence:
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver - Rename the update folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 Catroot2.old - Restart the services:
net start wuauserv net start cryptSvc net start bits net start msiserver - Restart your PC and attempt to run Windows Update.
⚠️ Warning: The Catroot2 folder is critical for cryptographic services. Renaming it is safe, but do not delete it outright as it will be recreated.
9. Advanced Troubleshooting
If none of the above methods resolve Windows Update Error 0x80240020, consider these advanced solutions.
Run System Restore
If the error started after a recent system change, use System Restore to revert to a previous state. Boot into the Recovery Environment, select Troubleshoot > Advanced Options > System Restore, and choose a restore point before the issue began. For detailed steps, see our How to Use System Restore Windows 11 guide.
Disable Third-Party Antivirus Temporarily
Some antivirus software can interfere with Windows Update. Temporarily disable your third-party antivirus and firewall, then try updating. Remember to re-enable after the update completes. For more, visit our How to Scan Malware Windows 11 guide.
Perform an In-Place Upgrade
An in-place upgrade reinstalls Windows while preserving your files and apps. Use the Media Creation Tool to download the latest Windows 11 ISO and run the setup from within Windows. This can repair deep system corruption that causes persistent update errors. Similar to resolving Windows 11 Update Stuck, this method is effective for stubborn update failures.
Check for Malware
Run a full system scan using Windows Defender Offline or a reputable third-party tool. Malware can sometimes block updates. See our How to Scan Malware Windows 11 for instructions.
If you continue to experience issues, consult the Microsoft Windows Update Resources for additional guidance or contact Microsoft Support.
Conclusion
Encountering Windows Update Error 0x80240020 can be frustrating, but the vast majority of cases are resolved with the methods outlined above. Start with the simplest fixes—restarting update services and running the troubleshooter—before moving to more advanced solutions like clearing the SoftwareDistribution folder, running DISM and SFC, and resetting update components. If the error persists, consider a System Restore or in-place upgrade.
Regular maintenance, such as keeping your drivers updated, ensuring sufficient disk space, and periodically running system file checks, can prevent this error from recurring. For additional Windows troubleshooting, visit our Windows 11 Troubleshooting Hub, where you’ll find comprehensive guides for Windows Update Error 0x80073701, Windows 11 Update Stuck Fix, and Windows 11 BSOD Fix.
Related Guides
- Windows 11 Troubleshooting Hub
- Windows 11 Update Stuck Fix
- Windows Update Error 0x80073701
- Windows Update Error 0x80070002
- Windows Update Error 0x800f081f
- Windows 11 Blue Screen of Death (BSOD)
- How to Update Drivers Windows 11
- How to Use System Restore Windows 11
- How to Scan Malware Windows 11
- How to Check RAM Health Windows 11
- Windows 11 High CPU Usage Fix
- Windows 11 Running Slow Fix
- Windows 11 Disk Usage 100% Fix
- Windows 11 File Explorer Not Responding
FAQ
What causes Windows Update Error 0x80240020?
The error is usually caused by corrupted update cache, stopped Windows Update services, insufficient disk space, incorrect system date/time, or corrupted system files. It may also be triggered by third-party antivirus interference or a pending system restart.
How do I fix Windows Update Error 0x80240020?
Start by restarting the Windows Update services, running the built-in troubleshooter, and clearing the SoftwareDistribution folder. If the error persists, run DISM and SFC scans, check your disk space, and reset update components manually.
Can I fix this error without resetting Windows?
Yes, most cases are resolved without resetting Windows. The methods listed above—restarting services, clearing cache, running DISM/SFC—are non-destructive and effective.
Is it safe to delete the SoftwareDistribution folder?
Yes, it is safe. Windows will recreate the folder automatically. Deleting it forces Windows to download fresh update files and can resolve corruption-related errors.
How much disk space do I need to avoid update errors?
Microsoft recommends at least 10 GB of free space on the system drive for Windows updates. More space may be required for major feature updates.
Can antivirus software cause this error?
Yes, some third-party antivirus programs can block Windows Update processes. Temporarily disabling your antivirus or adding Windows Update to the exclusion list can resolve the error.
What if the error persists after all fixes?
If the error continues, perform a System Restore to a point before the error appeared, or use an in-place upgrade to repair Windows without losing your files. As a last resort, a clean installation of Windows will resolve all software-related update issues.
Does clearing SoftwareDistribution delete my update history?
Yes, it will remove the update history, but this does not affect installed updates. Windows will rebuild the history as new updates are installed.
How do I run the Windows Update Troubleshooter?
Go to Settings > System > Troubleshoot > Other troubleshooters, find Windows Update, and click Run. Follow the on-screen instructions to detect and fix issues.
Can a corrupted system file cause this error?
Yes, corrupted system files are a common cause. Running SFC and DISM scans can repair these files and often resolves the update error.
We’re a team of system administrators, technical writers, and platform specialists who genuinely enjoy solving the problems most users find frustrating. From persistent Windows errors and Android sync failures to browser crashes and network drops — we’ve seen it all, and we document every fix properly. Our guides are built on official documentation, direct testing, and real troubleshooting experience. No filler, no guesswork — just reliable, step-by-step solutions you can trust.