Check Microsoft Defender protection status with Get-MpComputerStatus

One PowerShell cmdlet shows whether real-time protection is on, how old the virus signatures are, and when scans last ran.

WindowsantivirussecuritypowershellLow risk
Run `Get-MpComputerStatus` and look at RealTimeProtectionEnabled and AntivirusSignatureLastUpdated in the output.

01Command

Command
$ Get-MpComputerStatus

02What it does

The output contains dozens of fields, so target the ones that matter: RealTimeProtectionEnabled, AntivirusEnabled, AntivirusSignatureLastUpdated (stale here means your definitions aren't updating), and QuickScanStartTime. Pick specific properties with `Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, AntivirusSignatureLastUpdated` for a compact health check. Pairs naturally with Start-MpScan to trigger a scan and Get-MpThreatDetection to review what was found.

03Risk

RiskLow risk
RequirementsAvailable on Windows 10/11 and Server with Defender enabled; run in PowerShell (not CMD).

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Get-MpComputerStatus | Microsoft Learn
    Microsoft · vendor-doc · 2026-09-17
    Evidence: Microsoft documents Get-MpComputerStatus returning properties such as RealTimeProtectionEnabled, AntivirusSignatureLastUpdated, and QuickScanStartTime.

Last verified: 2026-09-17 · Category: Security & Privacy

06Related solutions