Windows Defender error 0x80073afc usually appears when the built-in antivirus fails to update its definitions or start its service, often after a recent Windows update or a corrupted system file. This guide walks you through the most reliable fixes, from resetting the Windows Update components to reinstalling the Defender app package, so you can restore real-time protection.
What You’ll Need
- An administrator account on your Windows PC (you’ll need to approve UAC prompts)
- A stable internet connection
- About 15–20 minutes of time
Step-by-Step
- Run the Windows Update troubleshooter first. This built-in tool often resolves the underlying update service issue. Go to Settings > System > Troubleshoot > Other troubleshooters, select Windows Update, and click Run. Follow the prompts and restart your PC if it suggests doing so.
- Reset the Windows Update components manually. If the troubleshooter didn’t help, open Command Prompt as administrator (search “cmd”, right-click, choose Run as administrator). Then run these commands one by one, pressing Enter after each:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Then rename the SoftwareDistribution and CatRoot2 folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 Catroot2.old
Finally, restart the services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Close the window and restart your computer. - Use the Windows Security app’s built-in repair. Open Windows Security (search for it in the Start menu). Click Device security, then under Security processor, select Security processor details. Look for a button labeled Security processor troubleshooting and click Run. This checks for firmware and driver issues that can interfere with Defender.
- Re-register the Windows Defender package via PowerShell. Open PowerShell as administrator (search “powershell”, right-click, Run as administrator). Run this command and wait for it to finish:
Get-AppxPackage Microsoft.Windows.SecHealthUI | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Restart your PC afterward. - Check the Microsoft Defender Antivirus service. Press
Win + R, typeservices.msc, and press Enter. Scroll to Microsoft Defender Antivirus Service. If it’s not running, right-click it and select Start. Set its startup type to Automatic by double-clicking it, changing the dropdown, and clicking Apply. - Run System File Checker and DISM. Open Command Prompt as administrator and run:
sfc /scannow
Wait for it to complete (this can take 10–15 minutes). Then run:
DISM /Online /Cleanup-Image /RestoreHealth
Restart your PC after both finish. - Update Windows manually. Go to Settings > Windows Update > Check for updates. Install any pending updates, especially cumulative updates and .NET Framework updates, then restart.
- As a last resort, use the Windows Security reset via Settings. Go to Settings > Apps > Installed apps, search for “Windows Security”, click the three dots, choose Advanced options, then click Reset. This re-registers the app without removing your personal files, but it will clear your custom Defender settings.
Common Mistakes
- Skipping the service restart after renaming folders. If you rename SoftwareDistribution but don’t restart the Windows Update service, the system may still point to the old folder and the error persists.
- Running commands without administrator rights. Most of these steps require an elevated prompt. If you see “Access denied” or “Requested operation requires elevation”, you’re not running as admin.
- Assuming a third-party antivirus is uninstalled. If you previously had Norton, McAfee, or another AV, its leftover drivers can block Defender. Check in Settings > Apps for any remnants and remove them with the vendor’s official removal tool.
- Ignoring Windows Update errors. If Windows Update itself is failing with a different error, fix that first—Defender updates ride on the same infrastructure.
Tips
- Create a restore point before making system changes. Type “Create a restore point” in Start, click Create, and follow the prompts. This lets you roll back if something goes wrong.
- Use the Windows Update troubleshooter again after step 2. Sometimes the manual reset fixes the underlying issue, and the troubleshooter then finishes the job.
- Check your date and time. Incorrect system time can break SSL connections to Microsoft’s update servers. Right-click the clock, choose Adjust date/time, and enable Set time automatically.
- Keep your PC plugged in during scans. SFC and DISM can take a while; a sudden shutdown can cause further file corruption.
Troubleshooting
If the error persists after all the above steps, try the following in order:
- Check the Event Viewer for more details. Press
Win + Xand select Event Viewer. Go to Windows Logs > System and look for errors with source “Microsoft-Windows-Windows Defender” around the time the error occurred. The details often point to a specific service or file. - Try a clean boot. Run
msconfig(Win + R), go to the Services tab, check Hide all Microsoft services, click Disable all, then restart. If Defender works in this state, a third-party service is interfering—re-enable services one by one to find the culprit. - Perform a Windows repair install. If nothing else works, download the Windows 11 Installation Assistant or the Windows 10 Media Creation Tool from Microsoft’s official site and run an in-place upgrade. This reinstalls Windows while keeping your files and apps. It takes about an hour but resolves most deep corruption.
- If the error only occurs during manual “Check for updates” in Windows Security, try downloading the latest Defender definition file directly from Microsoft’s security portal (search “Microsoft Defender definition updates”). Install it manually and restart.
Frequently Asked Questions
Will resetting Windows Security delete my files?
No. The Reset option in Settings > Apps only clears the app’s settings and temporary data, not your personal documents, photos, or other files.
Can I just disable Defender and use another antivirus?
Yes, but only if you install a third-party antivirus first—Windows automatically disables Defender when it detects another active AV. If you disable Defender without an alternative, your PC is unprotected.
Why does this error happen after a Windows feature update?
Feature updates sometimes reset service permissions or leave stale files in the SoftwareDistribution folder. The manual reset in Step 2 addresses these remnants directly.
Is it safe to rename the Catroot2 folder?
Yes. Windows recreates it automatically on the next update check. The folder only contains update signatures, not your personal data. Just ensure you run the command as administrator.
How long does the DISM command take?
It typically takes 5–15 minutes, but on older or slower machines it can take up to 30 minutes. Let it finish—do not close the window or restart mid-run.
Will these steps work on Windows 10 and Windows 11?
Yes. The commands and menu paths are essentially identical in both versions. The only difference is the look of the Settings app, but the search functions work the same.
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
- PowerPoint vs Keynote: Key Differences
- How to Sign Out of OneDrive in Windows 10
- Reduce Memory Use in Windows When RAM Is Low
- Type to Siri Instead of Talking on iPhone (iOS 11)
- Fix Samsung Galaxy Watch Random Vibrations
- Enable Developer Mode on iPhone X: Step-by-Step