Pcornel
Windows · Microsoft Defender

Exclusions

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

Back to the Topic

Answer

Defender exclusions skip scanning of specific files, folders, extensions or processes to avoid conflicts or performance issues. Keep them minimal and specific, because attackers abuse excluded paths.

Remember

  • Keep exclusions as few and narrow as possible.
  • Attackers place tools in excluded paths.
  • Process exclusions skip everything that process touches.

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

Verify in this order

exclusions skip scanning → risk

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=3213

Confirmation

Confirm action

Continue?