> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Antivirus scans

> Set when Microsoft Defender Antivirus scans your Windows devices, what it scans, the CPU it may use, how long it keeps quarantined items and what it does with each threat.

The Antivirus scans control sets how Microsoft Defender Antivirus scans your Windows devices: its scheduled and catch-up scans, the CPU a scan may use, what it scans, how long it keeps quarantined items and scan history, and what it does with each threat.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| | ✅ | | | |

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 scans**, then click **Add configuration**.

**2. Configure the settings**

Set each setting 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 on **Not configured** isn't written: the PC keeps its own setting. Times are the PC's local time.

## Settings

| Section | Setting | Options |
| - | - | - |
| **Scheduled scans** | **Scheduled scan type** | **Quick scan**, **Full scan**, **Not configured** |
| | **Scheduled scan day** | **Every day**, **Sunday** to **Saturday**, **Never**, **Not configured** |
| | **Scheduled scan time** | A time from 00:00 to 23:00, in steps of 30 minutes |
| | **Daily quick scan time** | A time from 00:00 to 23:00, in steps of 30 minutes |
| | **Quick scan interval (hours, 0 to 24)** | A whole number from 0 to 24 |
| | **Randomize scan start times** | **On**, **Off**, **Not configured** |
| | **Randomization window (hours, 1 to 23)** | A whole number from 1 to 23 |
| | **Scan only when the PC is idle** | **On**, **Off**, **Not configured** |
| | **Users can pause a scan** | **On**, **Off**, **Not configured** |
| **Catch-up scans** | **Catch up a missed full scan** | **On**, **Off**, **Not configured** |
| | **Catch up a missed quick scan** | **On**, **Off**, **Not configured** |
| | **Missed scans before a forced catch-up (2 to 20)** | A whole number from 2 to 20 |
| | **Update security intelligence before a scheduled scan** | **On**, **Off**, **Not configured** |
| | **Scan after a security intelligence update** | **On**, **Off**, **Not configured** |
| **Performance** | **CPU usage limit during a scan (%)** | A whole number from 0 to 100 |
| | **Low CPU priority for scheduled scans** | **On**, **Off**, **Not configured** |
| | **Limit CPU usage of scans when the PC is idle** | **On**, **Off**, **Not configured** |
| | **Apply the CPU limit to scheduled scans only** | **On**, **Off**, **Not configured** |
| **What is scanned** | **Scan archives** | **On**, **Off**, **Not configured** |
| | **Scan e-mail** | **On**, **Off**, **Not configured** |
| | **Scan network files** | **On**, **Off**, **Not configured** |
| | **Scan mapped network drives in a full scan** | **On**, **Off**, **Not configured** |
| | **Scan removable drives in a full scan** | **On**, **Off**, **Not configured** |
| | **Scan scripts** | **On**, **Off**, **Not configured** |
| | **Scan packed executables** | **On**, **Off**, **Not configured** |
| | **Scan reparse points** | **On**, **Off**, **Not configured** |
| | **Heuristics** | **On**, **Off**, **Not configured** |
| | **Include excluded files in quick scans** | **On**, **Off**, **Not configured** |
| **Remediation and quarantine** | **Create a system restore point before cleaning** | **On**, **Off**, **Not configured** |
| | **Days quarantined items are kept (0 to 90, 0 keeps them)** | A whole number from 0 to 90 |
| | **Days scan history is kept (0 to 90)** | A whole number from 0 to 90 |
| | **Remediation full scan day** | **Every day**, **Sunday** to **Saturday**, **Never**, **Not configured** |
| | **Remediation full scan time** | A time from 00:00 to 23:00, in steps of 30 minutes |
| | **Action on a low threat** | **Clean**, **Quarantine**, **Remove**, **Allow**, **Let the user decide**, **Block**, **Not configured** |
| | **Action on a moderate threat** | Same options |
| | **Action on a high threat** | Same options |
| | **Action on a severe threat** | Same options |
| | Threats, added with **Add a threat** | Up to 100, see below |
| **Local overrides** | **Settings a local administrator may override** | Any of **Scheduled scan day**, **Scheduled scan time**, **Daily quick scan time**, **Scheduled scan type**, **CPU usage limit**, **Quarantine retention**, **Remediation scan time** |

Each threat has a **Threat ID**, the numeric ID of a Microsoft Defender threat such as `2147519003`, and an **Action**: **Clean**, **Quarantine**, **Remove**, **Allow**, **Let the user decide** or **Block**. Name each threat ID once.

A setting listed in **Settings a local administrator may override** and set on the PC wins over this configuration. Leave the list empty to write no local override.

## How it works

Primo deploys a configuration profile that writes each 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 setting left on **Not configured** isn't in the profile.

When **Settings a local administrator may override** lists at least one setting, the profile allows the local override of each listed setting and turns off the local override of the others.

When you remove the configuration, Windows takes its policies out: no Defender setting of the configuration stays managed on the PC.

## Modify or remove the control

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

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Antivirus](https://docs.getprimo.com/mdm/policies/antivirus.md)
* [Antivirus updates](https://docs.getprimo.com/mdm/policies/antivirus-updates.md)
* [Antivirus exclusions](https://docs.getprimo.com/mdm/policies/antivirus-exclusions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.