用 Get-MpComputerStatus 查看 Microsoft Defender 状态

一条 PowerShell 命令即可看到实时保护是否开启、病毒库有多旧、上次扫描是什么时候。

Windows杀毒安全PowerShell低风险
运行 `Get-MpComputerStatus`,重点看输出里的 RealTimeProtectionEnabled 和 AntivirusSignatureLastUpdated。

01命令

命令
$ Get-MpComputerStatus

02作用说明

输出包含几十个字段,挑关键的使用:RealTimeProtectionEnabled、AntivirusEnabled、AntivirusSignatureLastUpdated(这里很旧说明病毒库没在更新)、QuickScanStartTime。用 `Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, AntivirusSignatureLastUpdated` 可以得到精简的健康检查。配合 Start-MpScan 触发扫描、Get-MpThreatDetection 查看查杀记录使用效果最佳。

03风险

风险低风险
使用条件Available on Windows 10/11 and Server with Defender enabled; run in PowerShell (not CMD).

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

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

最后验证: 2026-09-17 · 分类: 安全与隐私

06相关方案