Pcornel
Windows · Microsoft Defender

Real-time Protection

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

Back to the Topic

Answer

Real-time protection scans files and processes as they are opened, written or run, blocking malware before it executes. Check it with Get-MpComputerStatus and RealTimeProtectionEnabled.

Remember

  • Real-time protection scans files on access.
  • Exclusions reduce what it scans.
  • Policy can turn it off.

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

file access/process start → scanned in real time

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

Confirmation

Confirm action

Continue?