Error 0x80072af9 is a Windows Update failure caused by a time or date mismatch, a corrupted update cache, or a blocked connection to Microsoft’s servers. The fix is to first sync your clock and clear the SoftwareDistribution folder, then run the Windows Update Troubleshooter if the error persists. Below are the exact steps and the reasons each one works.
What This Error Means
Windows Update uses a secure HTTPS connection to download updates. The error code 0x80072af9 is part of the WinHTTP error family, and it specifically translates to ERROR_WINHTTP_SECURE_FAILURE. In plain terms, Windows could not establish a trusted, encrypted connection with the update servers. The most common trigger is a system clock that is set to the wrong date, time, or time zone, because the security certificate used by Microsoft’s servers is only valid for a specific time window. Other causes include a corrupt update cache, a firewall or proxy blocking the connection, or leftover files from a previous incomplete update.
Prerequisites and Safety Notes
Before making any changes, ensure you have administrator access to the PC. The steps below modify system files and services, so you should be signed in to an account with admin rights. Do not skip the clock check—it is the single most common cause and the cheapest to fix. Also, if you are on a corporate or school network, a group policy or proxy may override your local settings; in that case, contact your IT administrator after trying the steps below.
Step-by-Step Fix
- Sync your clock. Right-click the clock in the taskbar, choose Adjust date/time, and toggle Set time automatically to On. If it is already on, turn it off, set the correct time manually, then turn it back on. Also set the correct time zone under Time zone. Then restart Windows Update.
- Clear the update cache. Open Command Prompt as administrator (search for “cmd”, right-click, and choose Run as administrator). Type the following commands one by one, pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.oldnet start wuauservnet start cryptSvcnet start bits
This forces Windows to rebuild its update database from scratch. The .old folders are safe to delete later if the update works.
- Run the Windows Update Troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters (Windows 11) or Settings > Update & Security > Troubleshoot (Windows 10). Select Windows Update and run it. This tool automatically detects and fixes common issues like corrupted registry keys or service misconfigurations.
- Check your firewall and proxy. Temporarily disable any third-party firewall or VPN software, then try updating again. If you use a proxy, go to Settings > Network & Internet > Proxy and ensure the Use a proxy server toggle is off unless you need it. Windows Update needs direct access to
*.windowsupdate.comand*.microsoft.com. - Reset Windows Update components manually. If the above fails, open Command Prompt as administrator and run these commands in order:
netsh winsock resetnetsh winhttp reset proxysfc /scannow(this may take 10-15 minutes)
Then restart the PC and try updating again.
What to Try If the Fix Fails
If you still see 0x80072af9 after the steps above, the problem may be deeper. Check if the date and time are correct in your BIOS/UEFI, especially if you have a dual-boot system with Linux—Linux often sets the hardware clock to UTC, which confuses Windows. You can also try the Media Creation Tool from Microsoft to perform an in-place upgrade, which reinstalls Windows while keeping your files and apps. This is a last resort but often clears persistent update corruption. If you are on a metered connection, ensure Delivery Optimization is not blocking downloads—go to Settings > Update & Security > Delivery Optimization and allow downloads from other PCs.
Common Misconceptions
A frequent myth is that error 0x80072af9 means your Windows license is invalid or that you have a virus. Neither is true. The error is purely a network/security handshake problem. Another misconception is that you must reinstall Windows to fix it—this is almost never necessary. The steps above resolve the vast majority of cases. Also, do not confuse this code with 0x80072efd (a timeout) or 0x80072ee7 (a DNS failure); those have different causes and fixes, although clearing the cache can help with all of them.
Prevention Tips
- Keep your system clock set to automatic time and time zone.
- Regularly run Windows Update at least once a month to avoid large cumulative updates that can fail.
- Avoid using third-party “cleaner” tools that delete the SoftwareDistribution folder while Windows Update is running.
- If you use a VPN, disable it before updating, as some VPNs interfere with certificate validation.
Frequently Asked Questions
Will I lose my files if I clear the SoftwareDistribution folder?
No. That folder only contains temporary update files. Renaming it (as in the steps above) does not affect your personal documents, settings, or installed programs. Windows will recreate the folder automatically.
Why does the date and time matter for Windows Update?
Windows Update uses HTTPS, which relies on digital certificates. A certificate is only valid for a specific period. If your clock is off by even a few minutes, the certificate appears expired or not yet valid, and Windows refuses to connect for security reasons.
Can I fix this error on Windows 7 or 8?
Yes, the same general steps apply, but the menu locations differ. On Windows 7, you access the clock from the Control Panel, and the Troubleshooter is under Control Panel > Troubleshooting. However, Microsoft no longer supports those versions, so you should upgrade to a supported version for security.
What if I see this error on Windows Server?
The same steps work on Windows Server, but you may need to check proxy settings in Internet Explorer (which Windows Server uses for system services). Also, ensure the Windows Update service is set to Automatic and not disabled by a group policy.
Is there a way to avoid this error altogether?
Keep your system clock accurate, avoid using public DNS servers that might block Microsoft domains, and do not disable Windows Update services. If you use a proxy, add Microsoft’s domains to the bypass list.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- MacBook Trackpad Protection: A Complete Guide
- PlayStation Overheating: Causes & Fixes
- How to Remove or Insert a SIM Card in Your iPhone
- How to Send a Fax from Android or iOS
- Outlook Stuck on Loading Profile? Fix It
- Error 0x803f7001 Windows: Fixes & Meaning