- Windows Defender is a great tool to keep your PC safe. Besides, it's a comfortably built-in feature, courtesy of your operating system.
- Like all things Windows, however, sometimes workflow gets disrupted and errors may occur. Here's how to solve error code 0x80073afc.
- Get more solutions from our Windows Defender Guides and become your very own PC hero.
- If you wish to broaden your area of expertise, feel free to explore our Windows 10 Troubleshooting Hub.
Keeping your PC safe is crucial, and in order to protect your PC from malicious software Windows 10 relies on Windows Defender.
This tool works as an antivirus, but users reported certain issues with it. One error that appears while using Windows Defender is error 0x80073afc, so let’s see how to fix it.
How can I fix Windows Defender error 0x80073afc?
Table of contents:
- Uninstall your antivirus software
- Change your registry
- Remove the malicious software
- Check for problematic updates
- Use System Restore
- Wait for the official fix
- Update Windows
- Run the SFC scan
- Run DISM
- Clean your registry
- Check environmental values
- Change system permissions
- Restart the Security service
- Change the group policy
- Reset Windows 10
1. Uninstall your antivirus software
Windows Defender is designed to work as a default antivirus software on Windows 10, however, it can’t work with other security tools.
If the installer encountered an error 0x80073afc, be sure to uninstall your antivirus and check if that solves the problem.
By default, Windows Defender will turn itself off after you install a third-party antivirus program.
One way to eliminate such issues is to simply replace the in-built Windows solution with a modern antivirus that will not interfere with your system in any way.
Such is the case with VIPRE Antivirus, a powerful security suite that will protect your PC against all kinds of mailicious programs such as spyware, ransomware, viruses, rootkits, exploits and more.
Emerging threats make no exception as this well-balanced antivirus relies on a smart, cloud-based technology that allows it to update its signatures automatically and never fail to stay on top of the cybersecurity game.
VIPRE AntivirusSick of patching Windows Defender errors? Go for a modern antivirus instead and get a taste of peace of mind with VIPRE Antivirus!
2. Change your registry
It’s possible that your registry was altered by a malicious program, thus causing error code 0x80073afc to appear. To fix this problem you’ll need to change your registry.
Before you start altering your registry, keep in mind that changing the registry can be potentially dangerous, therefore be sure to create a backup of your registry just in case.
To edit your registry, follow these steps:
3. Try to find MSASCui.exe, MpCmdRun.exe, MpUXSrv.exe, or msconfig.exe keys. If you find any of them, right-click them and choose Delete.
After deleting the problematic keys, check if the problem is resolved.
3. Remove the malicious software
Sometimes malicious software can be located on your PC and cause this error to appear.
You need to look for MpCmdRun.exe, MpUXSrv.exe, MSASCui.exe, and msconfig.exe files or folders in the following directories: %AppData%, C:\WindowsTemp, %temp% and C:\Program Files.
You can easily access any of these folders simply by pasting the folder’s address into File Explorer and pressing Enter.
If you find any of the aforementioned files or folders, delete them and check if that fixes the problem.
4. Check for problematic updates
Users reported that certain Windows updates caused this error to appear, hence you need to find and remove the problematic ones.
To remove an update, do the following:
- Open the Settings app. (If you’re unable to open the Settings, here are some fixes).
- Go to the Update & Security section.
- In the Windows Update tab click on Advanced options.
- Now click on View your update history.
- Click Uninstall updates.
- Installed Updates window will appear. Now just locate the update that you want to remove and double click it to remove it.
Bear in mind that you need to remove the problematic update, so keep a close eye on all installed updates.
To prevent this issue from appearing again, you might want to block the problematic update from installing.
5. Use System Restore
Few users reported that they fixed this issue simply by restoring their computer with the System Restore feature.
Restoring your PC is easy, and you can do it by following these steps:
- Press Windows Key + S and enter restore. Select Create a restore point option.
- When the System Properties window opens, click the System Restore button.
- When System Restore starts, click Next.
- Select the restore point you want to revert to and click Next.
- Follow the instructions to restore your PC.
6. Wait for the official fix
Few users reported that their issue was fixed by installing the latest updates, so you might want to try that.
Usually, Windows updates fix these kinds of issues, so you might have to wait a bit until the official fix is released.
7. Update Windows
As Windows Defender is a part of Windows 10, it receives updates through Windows Update. So, maybe the issue you’re facing is acknowledged by Microsoft, and the company is working on a fix.
To make sure you’re not missing anything, just go to Settings > Updates & Security and check for updates.
8. Run the SFC scan
If none of the previous solutions worked, let’s try a few troubleshooting tools. The first one is the SFC scan.
This command-line tool scans your computer for potential issues and resolves them if possible. So, it might be helpful in this case, as well.
Here’s how to run the SFC scan in Windows 10:
- Right-click on the Start Menu button, and open Command Prompt (Admin).
- Enter the following line and press Enter: sfc/scannow
- Wait until the process is done (it may take a while).
- If the solution is found, it will automatically be applied.
- Now, close the Command Prompt and restart your computer.
9. Run DISM
DISM is another tool we’re going to try. Here’s how to run DISM in Windows 10:
1. Open the Command Prompt as shown above.
2. Enter the following command and press Enter:
DISM.exe/Online /Cleanup-image /Restorehealth
3. Wait for the process to finish.
4. Restart your computer.
5. In case the DISM can’t obtain files online, try using your installation USB or DVD. Insert media and type following command:
DISM.exe/Online /Cleanup-Image /RestoreHealth /Source:C:\Repair\Source\Windows /LimitAccess
Make sure to replace the
C:\Repair\Source\Windows path of your DVD or USB and follow further on-screen instructions.
10. Clean your registry
Some users report that Windows Defender won’t work because there are issues with your registry. To eliminate the doubt, go ahead and clean your registry.
The best way to clean the registry in Windows 10 is by using a third-party registry cleaner.
If you don’t have the first choice already, check out our list of the best registry cleaners for Windows 10 to get some ideas.
11. Check environmental values
Environmental values are handy, but a less-known feature that helps your system access certain directories.
Sometimes third-party apps may change these values, and that could lead to interferences with Windows Defender resulting in potential problems like the error 0x80073afc.
So, you need to make sure these values are set correctly. Here’s how to do that:
- Press Windows Key + S and enter advanced system settings. Select View advanced system settings from the menu.
- Now click the Environment Variables button.
- Locate the %ProgramData% variable and check if it’s set to C:\ProgramData. If not, change the variable accordingly.
12. Change system permissions
Another reason for Windows Defender issues may be the system permissions.
If some permissions are set to block Windows Defender, it obviously won’t work. So, make sure to check your permissions:
- Go to C:\ProgramData directory.
- Now locate the Microsoft directory and right-click it. Choose Properties from the menu.
- Now go to the Security tab and click Advanced.
- Now you should remove all inherited permissions. After doing that, save changes and check if the problem is resolved.
13. Restart the Security service
Everything in Windows 10 has its own service. And Windows Defender is not different.
So, you need to make sure that the Security service is running in order for Windows Defender to function normally. Here’s what you need to do:
- Press Windows key + R > launch Run. Type services.msc > hit Enter or click OK.
- In Services, search for Security Center. Right-click Security Center > click Restart.
14. Change the group policy
If you have all the necessary permissions, and the service is running, you might need to make a few changes in the Group Policy editor. Here’s what you need to do:
- Press Windows Key + R and enter gpedit.msc. Now press Enter or click OK.
- When Group Policy Editor opens, in the left pane navigate to Computer Configuration > Administrative Template > Windows Components > Windows Defender Antivirus. In the right pane, double-click Turn off Windows Defender Antivirus.
- Select Not Configured and click Apply and OK to save changes.
15. Reset Windows 10
If you still have this issue, you might want to reset Windows 10.
Resetting Windows 10 will delete all installed applications and in some cases, all your files from the primary partition, so use this option as the last resort.
Windows Defender error code 0x80073afc can cause a lot of problems, so be sure to try some of our solutions and let us know what worked for you in the comments section below.
Editor’s Note: This post was originally published in August 2018 and has been since revamped and updated in October 2020 for freshness, accuracy, and comprehensiveness.