Pcornel
Windows

Microsoft Defender

Cheat sheet · https://pcornel.dk/topic.php?topic=3210

Back to the Topic

Answer

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.

Remember

  • Third-party AV may put Defender in passive mode.
  • Exclusions are an attacker's favourite.
  • Tamper protection blocks local changes.

First checks

  • Get-MpComputerStatus — Defender state and signature age
  • Get-MpPreference — configuration incl. exclusions
  • Get-MpThreat / Get-MpThreatDetection — threats and detections
  • Update-MpSignature — update signatures
  • Start-MpScan -ScanType QuickScan — run a scan

Commands

Get-MpComputerStatus
Display Microsoft Defender status and signature versions.
Get-MpPreference
Display Microsoft Defender settings.

Verify in this order

engine + signatures + cloud + real-time → detection → action

Where it usually breaks

First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3210

Confirmation

Confirm action

Continue?