Skip to content

Failed to retrieve Microsoft Defender status #4136

Description

@apeteri

Similar past issues:

On my machine (Windows 11 24H2 26100.8457) Defender for Endpoint is installed alongside a third-party AV scanner. The unrecognized AmRunningMode value is Passive Audit Mode in this case, for which I can't find any documentation on MS sites but it does appear when queried directly with the PowerShell command:

PS C:\> Get-MpComputerStatus | Select-Object AMRunningMode

AMRunningMode
-------------
Passive Audit Mode

On another note, it might easier to check properties AntivirusEnabled and/or RealTimeProtectionEnabled on the same object as these are boolean values and reflect the "on" status of Defender more accurately: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/defender/msft-mpcomputerstatus#syntax:~:text=boolean%20%20AntivirusEnabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions