Use this when Defender doesn't protect or behaves oddly.
Defender Troubleshooting
Troubleshoot 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.
1. Get-MpComputerStatus — what is off?
2. Defender events: 1116 detection, 5001 RTP disabled, 2001 update failure.
3. Policy conflicts: gpresult/Intune.
4. Third-party AV causing passive mode.
5. MpCmdRun -GetFiles for support.
policy → service → engine → signatures → events
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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 Known-good, broken and when it is fixed Verify boundary
Known-good means Defender reports the intended real-time/cloud/protection settings, current security intelligence/engine state, no unresolved health errors and successful completion of the original scan/update/remediation path. Broken evidence is stale signatures, disabled protection, policy conflict or repeated operational error. Re-read effective settings after policy refresh and confirm any temporary diagnostic change was reverted. The limit of what it shows: a clean quick scan does not show the host is compromise-free; it shows only that the selected scan completed without the measured detection.
Step 2 Common mistakes Narrow the fault
- Third-party AV conflicting with Defender.
Step 3 Native failure isolation and next-check logic Narrow the fault
If Defender reports unhealthy protection, identify which capability is disabled or stale rather than reinstalling blindly. If signatures will not update, separate network/proxy/update-source failure from engine/service failure. If a scan fails or repeatedly detects the same item, inspect path/access, exclusion policy, quarantine state and remediation events. If a setting cannot be changed, determine whether tamper protection or managed policy owns it. For performance complaints, correlate scan activity with the workload and validate a narrow, justified exclusion only when evidence supports it; never use broad exclusions as first-line troubleshooting.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- With another antivirus, Defender may run in passive mode.
- Tamper protection blocks local setting changes.
- Several policies can conflict.
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
How it works
Microsoft Defender Antivirus runtime state is composed from service/engine health, security intelligence versions, real-time protection settings, cloud-delivered protection, exclusions, tamper protection and policy from local/Group Policy/MDM sources. A healthy UI icon does not show every protection layer is enabled or that a scan can access all content. Policy precedence can make a local change appear to revert. Exclusions deliberately remove inspection scope and therefore must be treated as security-impacting configuration. Record engine/platform/signature versions, active policy source, protection flags and relevant Defender operational events before changing exclusions or disabling protection.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
State first
PS C:\> Get-MpComputerStatus | Select AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, AMRunningMode, AntivirusSignatureLastUpdated, AntivirusSignatureAge, IsTamperProtected
AMServiceEnabled : True
AntivirusEnabled : True
RealTimeProtectionEnabled : True
AMRunningMode : Normal
AntivirusSignatureAge : 0
IsTamperProtected : True
| AMRunningMode | Meaning |
|---|---|
| Normal | Defender is the active antivirus |
| Passive | Another AV is primary (or Defender for Endpoint passive mode) — no real-time protection from Defender |
| EDR Block Mode | Passive AV, but EDR can block |
| SxS Passive | Limited periodic scanning alongside another AV |
MpCmdRun essentials
The Defender command-line documentation covers:
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1 # 1 quick, 2 full, 3 custom
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -GetFiles # MpSupportFiles.cab for support
Common problems
| Symptom | Check |
|---|---|
| Signatures not updating | -SignatureUpdate output; WSUS/Intune/UNC source order (Get-MpPreference \| Select SignatureFallbackOrder); proxy |
| Settings revert | GPO or Intune owns them; tamper protection blocks local changes |
| High CPU (MsMpEng.exe) | Scans of busy folders; Performance Analyzer: New-MpPerformanceRecording then Get-MpPerformanceReport |
| Application blocked | Event 1116/1117 (detection/action), ASR events 1121/1122, Controlled Folder Access 1123 |
| Exclusions not working | Wrong path form, exclusions managed by policy, or tamper protection |
Event log
Microsoft-Windows-Windows Defender/Operational holds detections (1116), actions (1117), update failures (2001), real-time protection changes (5001, 5007 configuration changed).
Exclusions with care
Add exclusions only for documented vendor paths (databases, Hyper-V VM files, backup targets) and prefer process exclusions scoped narrowly. Broad folder exclusions such as C:\Temp are a common malware hiding place.
*The Defender status values are illustrative indicators, not a security assessment of an actual endpoint.*
Method
Microsoft Defender troubleshooting handles protection that is off, updates that fail, false positives and performance impact.
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabled, IsTamperProtected, AntivirusSignatureLastUpdated
Update-MpSignature
Get-MpThreatDetection | Select-Object -First 10
& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -GetFiles # collect support logs
Get-WinEvent -LogName 'Microsoft-Windows-Windows Defender/Operational' -MaxEvents 30
| Symptom | Check |
|---|---|
| Passive mode | Another AV installed or EDR in passive configuration |
| Settings revert | Tamper protection, Intune/GPO policy overriding local |
| Signature updates fail | Proxy, WSUS/update source configuration |
| False positive | Submit file to Microsoft; narrow exclusion only if justified |
| High CPU | Scanning of large build/database folders — performance analyzer (New-MpPerformanceRecording) |
Use the performance analyzer to find which files and processes drive scan load before adding exclusions.
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 → Defender Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/defender/ · confidence 94%