Introduction
Windows Defender is a built-in antivirus solution provided by Microsoft for protecting your Windows operating system against various malware threats. However, some users report encountering issues when trying to add exceptions to Windows Defender. In this article, we will discuss the reasons for this problem and provide possible solutions to help you add exceptions in Windows Defender Antivirus.
Reasons for Unable to Add Exception in Windows Defender
There could be several reasons for the inability to add exceptions in Windows Defender. Some of the common reasons include:
- Insufficient permissions: The user account might not have the necessary permissions to modify the Windows Defender settings.
- Outdated definitions: The antivirus definitions might be outdated, causing issues with adding exceptions.
- Corrupted Windows Defender settings: The Windows Defender settings might be corrupted, preventing you from adding exceptions.
Solutions to Add Exception in Windows Defender
Solution 1: Run Windows Defender with Administrative Privileges
// Step 1:
Open the Windows Defender application by clicking on the Start menu and typing "Windows Defender" in the search bar.
// Step 2:
Right-click on the Windows Defender icon and select "Run as administrator."
Once you have run Windows Defender with administrative privileges, you should be able to add exceptions without any issues.
Solution 2: Update Windows Defender Definitions
// Step 1:
Open Windows Defender by clicking on the Start menu and typing "Windows Defender" in the search bar.
// Step 2:
Click on the "Update" button located at the bottom left corner of the window.
// Step 3:
Wait for the definitions to be downloaded and installed.
After updating the definitions, try adding the exception again.
Solution 3: Restore Windows Defender Settings
// Step 1:
Press the Windows key + X and select "Command Prompt (Admin)" or "PowerShell (Admin)" from the list.
// Step 2:
Type the following command and press Enter:
wmic.exe shadowcopy create /name:WindowsDefenderBackup /D:"C:\Windows\System32\wdf"
// Step 3:
Restart your computer.
// Step 4:
After the computer has restarted, press the Windows key + X and select "Command Prompt (Admin)" or "PowerShell (Admin)".
// Step 5:
Type the following command and press Enter:
wmic.exe shadowcopy get wdefsg /value > C:\temp\wdefsg.txt
// Step 6:
Open the text file located at C:\temp\wdefsg.txt in a text editor.
// Step 7:
Locate the following lines in the text file:
WinDefendSvc/Config/AllowExclusions = "C:\path\to\your\file\or\folder"
// Step 8:
Copy the entire line and paste it in the following command, replacing the path with the actual path of the file or folder you want to add as an exception:
wmic.exe policy set WinDefendSvc/Config/AllowExclusions = "C:\path\to\your\file\or\folder"
// Step 9:
Press Enter and wait for the command to execute.
// Step 10:
Restart your computer for the changes to take effect.
In this article, we discussed the reasons for the inability to add exceptions in Windows Defender and provided possible solutions to help you add exceptions in Windows Defender Antivirus. We covered running Windows Defender with administrative privileges, updating Windows Defender definitions, and restoring Windows Defender settings.