Use this when managing or troubleshooting Microsoft Defender Antivirus protection, scans and detections.
Microsoft Defender
Microsoft Defender Antivirus is the built-in Windows anti-malware engine, with real-time and cloud-delivered protection, scheduled and on-demand scans, quarantine and exclusions, managed by Intune, GPO or PowerShell.
1. Get-MpComputerStatus — enabled, real-time, signature age.
2. Passive/EDR block mode?
3. Tamper protection.
4. Detections.
5. Central management (Intune/MDE).
engine + signatures + cloud + real-time → detection → action
Context & applicabilityCommon mistakes · platform/version boundaries
- Defender left in passive mode after removing third-party antivirus.
- Tamper protection off.
- ASR rules never enabled, or left in audit mode forever.
- No central reporting, so detections on single machines go unseen.
Operational reference
Fast context before you go deeper.
Get-MpComputerStatusPrimary Commands
Configuration and operational commands for this Topic.
Get-MpComputerStatusVerifyDisplay Microsoft Defender status and signature versions.
Use when: Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
Quick note: Restores exact/ ownership only; this authored guidance is not observed production Evidence.
Windows / Windows Server / PowerShell · stateGet-MpPreferenceVerifyDisplay Microsoft Defender settings.
Windows / Windows Server / PowerShell · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Quick checks Verify boundary
Get-MpComputerStatus | Select AMRunningMode,AntivirusEnabled,RealTimeProtectionEnabled,AntivirusSignatureAge,IsTamperProtected
Get-MpThreatDetection | Select -First 5
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -GetFiles # collect support logs
Documented example, not captured output. AMRunningMode = Normal (active), Passive (another AV is primary) or EDR Block Mode.
Subtopics
Go one level deeper into this subject.
Real-time protection scans files and processes as they are opened, written or run, blocking malware before it executes.
Subtopic Cloud ProtectionCloud-delivered protection lets Defender send metadata or samples about suspicious files to Microsoft's cloud for near-instant verdicts, blocking new threats faster than signature updates alone.
Subtopic ExclusionsDefender exclusions skip scanning of specific files, folders, extensions or processes to avoid conflicts or performance issues.
Subtopic ScansDefender scans include quick scan of common malware locations, full scan of all files, custom scan of chosen paths and offline scan that runs before Windows starts, such as Start-MpScan -ScanType FullScan.
Subtopic QuarantineDefender quarantine isolates detected files so they cannot run, allowing review, restore or permanent removal.
Subtopic Defender SignaturesDefender signatures (security intelligence) are definition updates released several times a day.
Subtopic Defender TroubleshootingTroubleshoot Defender with Get-MpComputerStatus for engine, signature and protection state, the Windows Defender Operational event log, MpCmdRun -GetFiles for diagnostics, and checks for third-party antivirus or tamper protection.
- Third-party AV may put Defender in passive mode.
- Exclusions are an attacker's favourite.
- Tamper protection blocks local changes.
Get-MpComputerStatus— Defender state and signature ageGet-MpPreference— configuration incl. exclusionsGet-MpThreat / Get-MpThreatDetection— threats and detectionsUpdate-MpSignature— update signaturesStart-MpScan -ScanType QuickScan— run a scan
ReferenceHow it works1 section · depth on demand
In depth
Microsoft Defender family on Windows: Defender Antivirus (built-in), Defender for Endpoint (EDR, licensed, cloud portal), Defender for Servers (via Defender for Cloud), SmartScreen and Firewall. Endpoints are onboarded to MDE with a script, GPO, Intune or Azure Arc.
Get-MpComputerStatus | Select AMProductVersion,AMEngineVersion,AntivirusSignatureVersion
sc query sense # MDE sensor service
& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -GetFiles # support CAB
ReferenceImportant terms & boundaries1 section · depth on demand
Defender components
| Component | Purpose |
|---|---|
| Microsoft Defender Antivirus | Real-time and on-demand scanning |
| Attack Surface Reduction rules | Block risky behaviours (Office child processes, LSASS access) |
| Controlled Folder Access | Ransomware protection for folders |
| SmartScreen | Reputation for downloads and URLs |
| Defender for Endpoint (licensed) | EDR, investigation, response |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Microsoft Defender. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/defender/ · confidence 94%