sodcalculator

10 Tech How-To

Fix Windows Security Exclusions Not Working

Guide 10-16331 · Updated · Step by step

If Windows Security exclusions are not working, the most common fix is to ensure you’ve added the exclusion correctly, check for conflicting security software, and verify that the excluded file or folder isn’t blocked by another Windows feature like Controlled Folder Access. This article walks you through the exact steps to diagnose and resolve the issue.

How Windows Security Exclusions Work

Windows Security (formerly Windows Defender) allows you to exclude specific files, folders, file types, or processes from real-time scanning. This is useful for trusted applications that are falsely flagged or for large files that slow down scans. Exclusions are stored in the Windows registry and are applied globally to all scans, including real-time protection, antimalware scans, and Microsoft Defender Antivirus. However, exclusions only apply to the built-in antivirus—they do not affect third-party security software.

Common Reasons Exclusions Fail

  • Incorrect path: A typo or using a relative path instead of an absolute one can cause the exclusion to be ignored.
  • Controlled Folder Access: This feature blocks unauthorized apps from modifying protected folders, and it can override exclusions.
  • Third-party antivirus: If another antivirus is installed, Windows Security may be disabled, and its exclusions are not used.
  • Group Policy or registry settings: An administrator may have set exclusions that override user-defined ones, or vice versa.
  • File or folder permissions: If the path is inaccessible to the Windows Security service, the exclusion may not be applied.
  • Outdated definitions: Occasionally, a bug in the antivirus engine can cause exclusions to be ignored until updates are installed.

Step-by-Step Fixes to Try

  1. Verify the exclusion path: Open Windows Security > Virus & threat protection > Manage settings > Exclusions. Check that the path is correct and uses the full absolute path (e.g., C:\Program Files\MyApp). For folders, it’s better to exclude the folder itself rather than individual files.
  2. Add exclusions for file types and processes: If you’re excluding a file type (like .exe), ensure you’ve selected the right type. For processes, use the executable name (e.g., myapp.exe) without the full path.
  3. Check Controlled Folder Access: Go to Windows Security > Virus & threat protection > Ransomware protection > Manage ransomware protection. If Controlled Folder Access is on, add your app to the allowed list, or temporarily disable it to test if it’s the culprit.
  4. Disable third-party antivirus temporarily: If you have another antivirus, disable its real-time protection temporarily and see if the exclusion works. If it does, you’ll need to configure exclusions in that third-party software instead.
  5. Check Group Policy: If you’re on Windows Pro or Enterprise, run gpedit.msc and navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Exclusions. Ensure no policy overrides your local settings.
  6. Reset Windows Security: As a last resort, you can reset Windows Security by running PowerShell as administrator and executing Set-MpPreference -DisableRealtimeMonitoring $true then $false to restart the service.

How to Add Exclusions Correctly

To add an exclusion, open Windows Security, go to Virus & threat protection > Manage settings (under Virus & threat protection settings) > Exclusions > Add or remove exclusions. Click Add an exclusion and choose from:

  • File: Select a specific file.
  • Folder: Select a folder and all its contents.
  • File type: Enter an extension like .exe (no dot needed).
  • Process: Enter the process name, e.g., myapp.exe.

Make sure you have administrator privileges to add or remove exclusions. After adding, you can test by running a quick scan or trying to access the file—it should no longer be flagged.

When Exclusions Are Not Enough

Sometimes exclusions don’t work because the issue isn’t with Windows Security at all. For example, if an application is being blocked by SmartScreen (which checks reputation) or by network protection, you may need to adjust those settings separately. Also, if you’re using a portable app that runs from a temporary folder, the exclusion might be bypassed if the path changes. In such cases, consider excluding the entire drive or using a different folder location.

Another scenario is when Windows Security is in passive mode because a third-party antivirus is installed. In passive mode, Windows Security doesn’t perform real-time scans, so its exclusions are irrelevant. You’d need to configure exclusions in the active third-party software instead.

Comparison with Third-Party Antivirus Exclusions

Third-party antivirus programs (like Norton, McAfee, or Bitdefender) have their own exclusion lists. They often work similarly but may have different limitations. For example, some don’t allow excluding entire drives, or they require you to exclude both files and processes separately. If you’re using a third-party antivirus, always check its documentation for exclusion settings. Remember that Windows Security exclusions do not affect third-party software, and vice versa.

Safety Considerations

Exclusions reduce your protection. Only exclude files and folders you trust completely. Malware can hide in excluded locations, so it’s wise to periodically review your exclusions and remove any that are no longer necessary. Also, be cautious when excluding file types like .exe or .scr—this can allow malicious executables to run without detection. Always ensure that the exclusion path is specific and not too broad (e.g., excluding the entire C: drive is strongly discouraged).

Frequently Asked Questions

Why is my excluded file still being deleted?

If a file is still being removed, first confirm that the exclusion is actually saved. Then check if Controlled Folder Access is blocking it, or if another security product is interfering. Also, if the file is in a location that is recreated (like a temp folder), the exclusion might not apply to the new path. Try excluding the parent folder or the file type.

Can I exclude a file type like .dll?

Yes, you can exclude file types by extension. However, be aware that excluding .dll files can be risky because many malware variants use .dll extensions. Only do this if you have a specific trusted application that requires it.

Do exclusions work in offline scans?

No, exclusions are not applied during Microsoft Defender Offline scans. This is a security measure to ensure that even if malware hides in an excluded location, it can be detected during an offline scan.

How do I remove an exclusion?

Go to Windows Security > Virus & threat protection > Manage settings > Exclusions. Click on the exclusion you want to remove and select Remove. You’ll need administrator rights to do this.

Why does Windows Security ignore my exclusion after an update?

Occasionally, Windows updates may reset or change security settings. Check if the exclusion is still present. If it is, try removing and re-adding it. Also, ensure that no Group Policy has been updated to override your local exclusions.

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

The whole Tech How-To bed →