Real-time Protection
Cheat sheet · https://pcornel.dk/topic.php?topic=3211
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 ageGet-MpPreference— configuration incl. exclusionsGet-MpThreat / Get-MpThreatDetection— threats and detectionsUpdate-MpSignature— update signaturesStart-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