Microsoft Defender Antivirus (formerly Windows Defender) is the built-in, essential security layer for modern Windows systems. As a system administrator or power user, you need a fast, reliable way to verify its operational status, check for the latest definition updates, and confirm key protection features are active.
While you could navigate through the GUI, PowerShell offers a much quicker, automatable solution.
The Defender Status Checker Script
The following PowerShell function, Get-DefenderStatusAndVersion, uses the native Get-MpComputerStatus cmdlet to retrieve a comprehensive security report on your machine.
Prerequisites
- Operating System: Windows 8.1, Windows 10, Windows 11, or Windows Server 2016/2019/2022.
- Permissions: You may need to run PowerShell with Administrator privileges to access all status details without error.
The PowerShell Script
Save the following code as Check-DefenderStatus.ps1.
Understanding the Key Output Fields
The script formats the output from Get-MpComputerStatus into easily digestible sections:
| Output Field | Description | Importance |
|---|---|---|
| Service Status (WinDefend) | The state of the core Microsoft Defender Antivirus service. Must be Running. | Critical (If not running, the AV is offline.) |
Product Version (AMProductVersion) | The main version number of the Defender Antivirus client software itself. | High (Indicates the core framework version.) |
Engine Version (AMEngineVersion) | The version of the scanning and detection engine. | High (Newer engines offer better performance.) |
Antivirus Signature (AntivirusSignatureVersion) | The version of the malware definitions. This should be a very recent number. | Critical (Needs to be current for threat detection.) |
Real-time Protection (RealTimeProtectionEnabled) | Indicates if file, registry, and program monitoring is actively running. Must be True. | Critical |
Behavior Monitoring (BehaviorMonitoringEnabled) | Indicates if Defender is monitoring process behavior for suspicious activity (e.g., ransomware-like actions). Must be True. | High |
Tamper Protection (IsTamperProtected) | Shows if security settings are locked down to prevent malicious apps from disabling Defender. Should be True. | High (Prevents self-disablement attacks.) |
| Last Signature Update | The date and time the definitions were last updated. This should be within the last day or two. | High (Indicates update health.) |
Summary
This simple, reusable PowerShell script is an essential tool for quickly verifying the health and currency of your Windows Defender installation. Just save it, run it (as Administrator if possible), and instantly get a clear snapshot of your system’s core protection status.




