Skip to main content
The Antivirus exclusions control sets what Microsoft Defender Antivirus leaves alone on your Windows devices: the files and folders, file extensions, processes and IP addresses it skips, its automatic exclusions, and whether local users and administrators can see the exclusions.

Platform compatibility

Runs on Windows devices with an x86_64 or ARM64 processor.

Set up the control

1

Add a configuration

Go to MDM > Controls, open Antivirus exclusions, then click Add configuration.
2

Configure the settings

Add the entries of each list and set the settings you want to enforce. See the settings below. Configure at least one setting.
3

Select targeting

Choose which devices to apply the configuration to: all Windows devices, specific device groups, or a custom target. Click Activate to deploy the configuration. Save keeps it inactive.
A setting left empty or on Not configured isn’t written: the PC keeps its own setting. Every exclusion is a place Defender no longer scans: keep each list as short as you can.

Settings

  • Each list holds up to 500 entries, each listed once. A path or a process has up to 260 characters and can’t contain |, <, > or ".
  • Automatic exclusions for server roles: Windows Server excludes the files of its roles on its own. Off scans them too. It has no effect on Windows 10 and 11.
  • Hide the exclusions from local administrators: On hides the exclusions in Windows Security and PowerShell from local administrators, and from local users too. With it on, Hide the exclusions from local users can only be On or Not configured.
  • Hide the exclusions from local users: On hides the exclusions in Windows Security and PowerShell from local users who are not administrators.

How it works

Primo deploys a configuration profile that writes each list and setting you configured to Microsoft Defender Antivirus, through the Defender area of the Policy CSP, the Microsoft Defender Antivirus ADMX policies and the Defender CSP. A list left empty or a setting left on Not configured isn’t in the profile. When you remove the configuration, Windows takes its policies out: the PC no longer holds the exclusions of the configuration.

Modify or remove the control

Open the control from MDM > Controls to edit, deactivate or replace a configuration.