Get-MpComputerStatus | Select-Object AMRunningMode in Windows PowerShell. These procedures apply to Windows 11 and Windows 10.Windows allows only one antivirus product to act as the primary real-time scanner at a time so that competing engines do not lock files or degrade performance. When you install a supported third-party antivirus, it registers with the Windows Security Center service and Microsoft Defender Antivirus automatically steps aside—entering disabled mode on unmanaged PCs, or passive mode if the device is onboarded to Microsoft Defender for Endpoint.
Prerequisites and compatibility
Before checking provider status, confirm the environment you are working on:
- Supported operating systems: Windows 11 and Windows 10 (all editions). Windows Server editions do not include the Windows Security Center (
wscsvc) desktop registration model and do not enter passive mode automatically when a third-party antivirus is installed. - Permissions: A standard user account can view providers in the Windows Security app and run
Get-MpComputerStatusin PowerShell. An administrator account is required if you need to inspect or restart Windows services, remove leftover third-party software, or query WMI/CIM on locked-down systems. - Passive mode requirement: According to Microsoft documentation, Microsoft Defender Antivirus enters true Passive mode on Windows 10 and Windows 11 only when a non-Microsoft antivirus is active and the device is onboarded to Microsoft Defender for Endpoint (MDE). On standalone home or unmanaged business PCs with a third-party antivirus, Defender normally switches to disabled mode rather than passive mode.
- Work or school devices: If your PC is managed by an organization via Microsoft Intune or Group Policy, security provider controls or Defender settings may be locked by policy. Do not attempt to override managed security settings without consulting your IT administrator.
Check registered antivirus providers in Windows Security
The Security providers page in Windows Security displays every antivirus product registered with Windows and shows whether Windows considers it active.
Step 1: Open Windows Security
Use either the Start menu or Windows Settings to launch the app:
- Select Start, type
Windows Security, and select Windows Security from the search results. - Alternatively, open Settings:
- Windows 11: Go to Privacy & security > Windows Security > Open Windows Security.
- Windows 10: Go to Update & Security > Windows Security > Open Windows Security.
Step 2: Open the Security providers page
You can reach the provider list from two places inside the Windows Security app:
- In the left navigation pane (or on the home dashboard), select Virus & threat protection.
- Scroll down to the Who's protecting me? section and select Manage providers.
- If you do not see Who's protecting me? or want a direct path across all security categories, select Settings (the gear icon in the bottom-left corner of Windows Security) and choose Manage providers under Security providers.
Step 3: Read the Antivirus provider status
On the Security providers page, locate the Antivirus section:
- Review each listed product card. You will see Microsoft Defender Antivirus and any registered third-party antivirus applications.
- Check the status label next to each name:
- Turned on (or active): Windows recognizes that product as your primary real-time antivirus scanner.
- Turned off (or snoozed/expired): That product is not currently providing primary real-time protection. If you see a third-party product listed as active, Microsoft Defender Antivirus will normally appear as turned off.
- Select a provider card to expand it. An Open app button appears so you can launch that antivirus product's own console to check scan history, license status, or definition updates.
If no third-party antivirus is listed and Microsoft Defender Antivirus shows as turned off, return to Virus & threat protection, select Manage settings under Virus & threat protection settings, and switch Real-time protection to On.
Check Microsoft Defender active or passive mode with PowerShell
The Windows Security interface does not always distinguish between Microsoft Defender Antivirus being completely disabled and running in passive mode alongside another antivirus. PowerShell queries the Defender engine directly to show its exact operating state.
- Select Start, type
PowerShell, and open Windows PowerShell (or Terminal on Windows 11). - Run the following command and press Enter:
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabled
- Inspect the value returned for
AMRunningMode: Normal: Microsoft Defender Antivirus is running in active mode as the primary antivirus on the device. Real-time protection, scheduled scans, and threat remediation are handled by Defender.PassiveorPassive Mode: Microsoft Defender Antivirus is running in passive mode. A third-party antivirus is registered as primary, while Defender remains installed alongside it (typically on devices onboarded to Microsoft Defender for Endpoint) without performing primary real-time remediation.EDR Block Mode: Microsoft Defender Antivirus is in passive mode, and Endpoint Detection and Response (EDR) in block mode is active. A third-party antivirus is primary, but Defender for Endpoint can still detect and block post-breach threats the primary product misses.Not running: Microsoft Defender Antivirus is disabled. This is expected on unmanaged PCs where a third-party antivirus is active.- Cross-check
AntivirusEnabledandRealTimeProtectionEnabled: - In active mode (
Normal), bothAntivirusEnabledandRealTimeProtectionEnabledshould readTrue. - In passive mode or EDR Block Mode,
RealTimeProtectionEnablednormally reportsFalsebecause the third-party antivirus handles real-time file scanning.
Verify your antivirus configuration
After checking both Windows Security and PowerShell, confirm that the two views agree and that core security services are running:
- Open Windows PowerShell and check the status of the underlying Windows security services:
Get-Service WinDefend, SecurityHealthService, wscsvc | Select-Object Name, DisplayName, Status
- Confirm what a healthy state looks like for your setup:
- Defender as primary antivirus:
wscsvc(Security Center) andWinDefend(Microsoft Defender Antivirus Service) areRunning, Windows Security lists Microsoft Defender Antivirus as turned on under Manage providers, andAMRunningModereturnsNormal. - Third-party antivirus as primary (unmanaged PC):
wscsvcisRunning, Windows Security lists your third-party antivirus as turned on under Antivirus, andAMRunningModereturnsNot running. - Third-party antivirus with Defender for Endpoint:
wscsvcandWinDefendareRunning, Windows Security lists your third-party antivirus as primary, andAMRunningModereturnsPassive ModeorEDR Block Mode.
Alternate method: Query all registered providers via WMI/CIM
If Windows Security fails to open or you want to script an inventory across Windows 11 or Windows 10 client PCs, you can query the Windows Security Center WMI namespace directly from PowerShell. (This namespace does not exist on Windows Server.)
- Open Windows PowerShell.
- Run the following command to list every antivirus registered with Windows Security Center and format its
productStatecode in hexadecimal:
Get-CimInstance -Namespace root\SecurityCenter2 -ClassName AntiVirusProduct |
Select-Object displayName, @{Name='HexState';Expression={'0x{0:X6}' -f $_.productState}}, pathToSignedProductExe
- Interpret the six-digit
HexStatevalue (for example,0x061100or0x060100): - Third hex digit from the left (engine state):
1= Enabled / On (for example,0x061100or0x041000)0= Disabled / Off (for example,0x060100or0x040000)2= Snoozed3= Expired- Fifth hex digit from the left (signature status):
0= Signatures are up to date (for example,0x061100)1= Signatures are out of date (for example,0x040010)
This query is especially useful for spotting leftover registrations from a previously uninstalled third-party antivirus that no longer appears cleanly in the app interface.
Troubleshooting and recovery
Get-MpComputerStatus returns an error or Not running unexpectedly
- Cause: A third-party antivirus is active on an unmanaged PC, or the Microsoft Defender Antivirus Service (
WinDefend) is stopped or disabled. - Fix: Check Manage providers in Windows Security to see if another antivirus (including an expired preinstalled trial) is registered. If you do not intend to use that third-party product, uninstall it via Settings > Apps > Installed apps, restart Windows, and re-run
Get-MpComputerStatus | Select-Object AMRunningMode.
Windows Security shows Defender turned off, but PowerShell shows Normal and True
- Cause: The Windows Security app or the Security Center (
wscsvc) service has a stale status cache, or a temporary reporting glitch occurred after an update. - Fix:
- Press
Win + R, typeservices.msc, and press Enter. - Locate Security Center (
wscsvc), right-click it, and select Restart (if Restart is unavailable, verify its Startup type is Automatic (Delayed Start) and its status is Running). - Restart your PC and check Virus & threat protection > Manage providers again.
A previously uninstalled antivirus still appears under Manage providers
- Cause: The third-party uninstaller failed to remove its registration from Windows Security Center, preventing Microsoft Defender Antivirus from resuming active mode.
- Fix: Download and run the official removal/cleanup tool from that antivirus vendor's support site, then restart the PC.
- Warning: Only edit the Windows Registry if the vendor's official cleanup tool fails, and back up the registry key before deleting any values.
- Registry fallback and rollback:
- Press
Win + R, typeregedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center\Provider\Av. - Right-click the
Avkey, select Export, and save a.regbackup file to your Desktop. - Inspect the subkeys under
Avfor the display name of the already-uninstalled antivirus and delete only that orphaned subkey, then restart Windows. - Rollback: If deleting a subkey causes unexpected behavior, double-click the
.regbackup file you exported in step 3 to restore it and restart your PC.
AMRunningMode stays in Passive Mode after removing a third-party antivirus
- Cause: On enterprise-managed endpoints, a policy or registry key (
ForceDefenderPassiveMode) may still be forcing passive mode, or Tamper Protection / Defender for Endpoint policy has not yet synchronized. - Fix: Wait several minutes for Windows Security Center to detect the removal and restart the PC. If
AMRunningModestill reportsPassive Mode, check whether your organization enforces passive mode via Intune, Group Policy, orHKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection\ForceDefenderPassiveMode(REG_DWORDset to1), and have your IT administrator update the policy if Defender is meant to be primary. Note that on Windows 11 with Smart App Control enabled, Microsoft notes thatAMRunningModecan also report passive mode in specific configurations even without Defender for Endpoint onboarding.
Windows Security opens to a blank page or "Virus & threat protection" is missing
- Cause: On a work or school PC, an IT administrator may have hidden the Virus & threat protection area by policy. On a personal PC, the
SecurityHealthServiceor Windows Security app registration may be damaged. - Fix: Check
Get-Service SecurityHealthServicein PowerShell. If it is stopped, start it fromservices.mscor runStart-Service SecurityHealthServicein an elevated PowerShell window. If the issue persists on a managed device, contact your IT help desk before attempting local repairs.
Correction (November 30, 2026): An earlier version of this article said AMRunningMode can return False on some Windows 10 builds. AMRunningMode is a text value and returns Not running when Microsoft Defender Antivirus is disabled. False is the value returned by the separate boolean fields AntivirusEnabled and RealTimeProtectionEnabled. The article has been corrected.