END Curated SOP / Endpoints
Check Microsoft Defender Antivirus status on a Windows device
Confirm that Microsoft Defender Antivirus on a Windows device is running in the mode the client expects, has real-time protection on, has current security intelligence and has tamper protection on.
Written and maintained by MSP Stockroom. Nobody else edits it.
On this page
Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.
Purpose
Confirm that Microsoft Defender Antivirus on a Windows device is running in the mode the client expects, has real-time protection on, has current security intelligence and has tamper protection on. Use it when you take over a client's devices, when a device shows as unhealthy in your management tool, and after another antivirus product is removed. Read-only: nothing in this SOP changes the device.
Scope and prerequisites
- Run by the tech supporting the device, in an elevated PowerShell window on that device or through your remote management tool.
- Needs local administrator rights on the device.
- Know whether the client uses another antivirus product, and whether the device is onboarded to Microsoft Defender for Endpoint. Both change what a healthy result is.
Steps
- Check the running mode and the protection switches:
Get-MpComputerStatus | Select-Object AMRunningMode, AMServiceEnabled, AntivirusEnabled, AntispywareEnabled, RealTimeProtectionEnabled, BehaviorMonitorEnabled, IoavProtectionEnabled, OnAccessProtectionEnabled, NISEnabled, IsTamperProtectedRead the result:
- AMRunningMode Normal: Defender is the active antivirus. Every Enabled value above should be True.
- AMRunningMode Passive Mode: another antivirus product is the primary one, and the device is onboarded to Defender for Endpoint. Confirm the other product is running and up to date.
- AMRunningMode SxS Passive Mode: Defender runs alongside another antivirus product and only does limited periodic scans. Confirm the other product is the one the client pays for.
- AMRunningMode EDR Block Mode: another antivirus product is the primary one, and Defender for Endpoint's EDR in block mode is on. Confirm the primary product is running.
- RealTimeProtectionEnabled False in Normal mode: the device is not protected as files open. Record it as a finding.
- IsTamperProtected False: local admins or malware can switch protection off. Record it as a finding.
- Check the version and how current the security intelligence is:
Get-MpComputerStatus | Select-Object AMProductVersion, AMEngineVersion, AntivirusSignatureVersion, AntivirusSignatureLastUpdatedRead the result:
- AntivirusSignatureLastUpdated more than 7 days ago: Defender counts its security intelligence as out of date by default. Record it, and check the device can reach its update source.
- Check when the last scans finished:
Get-MpComputerStatus | Select-Object QuickScanStartTime, QuickScanEndTime, FullScanStartTime, FullScanEndTimeRead the result:
- QuickScanEndTime empty or much older than the client's scan schedule: scheduled scans are not running. Record it.
- FullScanEndTime empty is common and is not a finding on its own.
Verify
The running mode matches what the client expects, real-time protection and tamper protection are on where Defender is the active antivirus, and security intelligence is less than 7 days old. Anything else is listed for the client as a finding with the device name.
Rollback
Nothing to roll back; this SOP only reads. Turning protection on, changing the running mode, turning on tamper protection or updating security intelligence are separate changes, made with the client's approval. Tamper protection cannot be changed with PowerShell.
Notes
Windows Server does not switch to passive mode by itself when another antivirus product is installed, so two products can end up active on a server. Check both if you find another product there. Passive mode is only possible on devices onboarded to Defender for Endpoint. See https://learn.microsoft.com/defender-endpoint/microsoft-defender-antivirus-windows and https://learn.microsoft.com/defender-endpoint/microsoft-defender-antivirus-compatibility for Microsoft's guidance.
Sources and notes
- https://learn.microsoft.com/defender-endpoint/microsoft-defender-antivirus-windows
- https://learn.microsoft.com/defender-endpoint/microsoft-defender-antivirus-compatibility
Curated SOP from the MSP Stockroom SOP library (curated/endpoints/check-microsoft-defender-antivirus-status-on-a-windows-device.md). Last reviewed December 1, 2026. Tested on: Not yet run; written for Windows 11 24H2, Windows 10 22H2, Windows Server 2022; Windows PowerShell 5.1. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.