Windows Defender

Windows 10's built-in antivirus tool Microsoft Defender uses threat signatures, behavioral detection, and machine learning models to automatically detect and block suspicious files, folders, and processes.

However, sometimes legitimate programs or programs created by your organization may receive false-positive detections in Windows Defender leading to the executable being quarantined.

A false positive detected in Microsoft Defender
A false positive detected in Microsoft Defender

False positives are particularly common among tools used by cybersecurity researchers that share many of the characteristics of malware but are, in fact, just tools that can be used for a good or harmful activity.

Fortunately, Microsoft allows you to exclude files and folders, so they are not scanned by Microsoft Defender.

This feature is for those who need to run apps or programs that have been detected as malicious, but you are confident are safe.

How to use the exclusion feature of Windows Defender

It is important to remember that you should never exclude a file or folder from antivirus scans unless you know for 100% that they are safe and legitimate files.

Otherwise, if you exclude a folder and mistakenly execute malware from it, Microsoft Defender will not detect and quarantine the malware.

To exclude a file or folder from being scanned by Microsoft Defender, please follow these steps:

  1. Open Start Menu and then click on Settings.
  2. When the Settings window opens, click on Update & Security, and then select Windows Security.
  3. In the Windows Security windows, click on Virus & Protection, as shown by the red arrow below.
    The Windows Security settings screen
    The Windows Security settings screen
  4. When the Virus & threat protection screen opens, click on the Manage settings option.

    Defender

  5. Under Exclusions, click on Add or remove exclusions.

    Defender

  6. You will now be at the Exclusions screen, where you can add a new excluded file, folder, file type, or process. To exclude one of these items, click on Add an exclusion and select the type of item you wish to exclude.

    Exclusions

    When excluding a file or folder, you will be asked to select the file/folder you wish to exclude.

    If you wish to exclude a file type, you need to specify a file type extension to exclude. For example, '.txt' would exclude all files ending with the .txt extension from Microsoft Defender scans.

    Finally, if you exclude a process, you should enter the full path to the executable. For example, 'C:\exclude\test.exe'.

  7. When done adding exclusions, you can close the Windows Security settings screen.

Once added, Windows Defender will not scan or detect your file or app as malicious. It's also worth noting that a folder exclusion will apply to all subfolders within the folder as well.

Related Articles:

Microsoft fixes bug behind incorrect BitLocker encryption errors

Microsoft April 2024 Patch Tuesday fixes 150 security flaws, 67 RCEs

Windows 10 KB5036892 update released with 23 new fixes, changes

New Windows driver blocks software from changing default web browser

Recent Windows updates break Microsoft Connected Cache delivery