Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Set Microsoft Defender Antivirus to Passive or Active Mode
  • cockpit
    Installation and configuration of Cockpit on CentOS Linux Linux
  • image 78
    How to enable LDAP over SSL with a third-party Certificate such as DigiCert Windows
  • burp20
    Install and use Burp Suite for Web Application Security Testing Security | Vulnerability Scans and Assessment
  • Featured image   The Local Device Name is Already in Use
    How to Fix The Local Device Name is Already in Use Windows
  • azure just in time
    How to secure access to your Virtual Machine with Just-in-Time (JIT) VM Access AWS/Azure/OpenShift
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • image 64
    How to install Fax Server on a Windows Server Windows
  • screenshot 2020 03 20 at 16.10.20
    How to install Ansible on Windows with Cygwin Windows Server

Set Microsoft Defender Antivirus to Passive or Active Mode

Posted on 16/01/202424/06/2025 Christian By Christian No Comments on Set Microsoft Defender Antivirus to Passive or Active Mode
How-to-enable-or-disable-Microsoft-Defender-Antivirus-Active-or-Mode-Mode

Windows comes preinstalled with Microsft Defender Antivirus on their major operating system. This keeps the server secure from well-known attacks. Please learn how to Set Microsoft Defender Antivirus to Passive or Active Mode. Please see how to Connect to a FileZilla Server: How to install and configure a FileZilla Server on Windows, and how to Remove Microsoft Defender Update on Windows 10 & Server.

By default, Microsoft Defender Antivirus is installed and functional on Windows Server. If you’re using a non-Microsoft antivirus product as your primary antivirus solution on Windows Server. You must set Microsoft Defender Antivirus to passive mode or disabled mode manually. Also, if your Windows Server endpoint is onboarded to Microsoft Defender for Endpoint. You can set Microsoft Defender Antivirus to passive mode.

Verify if Micrsoft Defender is installed.

The image shows Microsoft Defender isn’t installed.

Follow the steps below to install it.

Installed state - Defender

Please install this feature via the Server manager (Add roles and features) or via PowerShell

Add-roles-and-features

Select the server from the list to install the feature onto. Select Microsoft Defender Antivirus

Install Microsoft Defender Antivirus

Now, Installed

Microsoft-Defender-State

Use the PowerShell cmdlets in the following table

After you’ve installed (or reinstalled) Microsoft Defender Antivirus, your next step is to verify that it’s running.

ProcedurePowerShell cmdlet
Verify that Microsoft Defender Antivirus is runningGet-Service -Name windefend
Verify that firewall protection is turned onGet-Service -Name mpssvc
Is-Defender-Antivirus-is-running

Please see how to View Microsoft Defender Antivirus Update Details on Windows 10 Image, and how to update Microsoft Defender Antivirus into the install image of Windows (install.wim).

Enable Microsft Defender Passive Mode

To enable the GUI, please follow the steps to set Microsoft Defender Antivirus to passive mode.

This is done by setting the following registry key and rebooting the server.
Launch Windows Registry

Set Microsoft Defender Antivirus to passive mode by using a registry key

Path: HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection

Create a New REG_DWORD value

ForceDefenderPassiveMode

Name: ForceDefenderPassiveMode

Enter-the-name

Enter the Value: 1 by double-clicking on the name

Defender-Registry-Value

REG_DWORD value created

Key-created

What happens if a Primary Antivirus is uninstalled?

If a non-Microsoft antivirus product was installed on Windows Server. Microsoft Defender Antivirus was probably set to passive mode. 

Note: On a client PC, you do not need to manually set the device to passive mode if the primary antivirus is no longer active. But you will have to force the server to active mode on Windows Server if the primary antivirus solution is no longer working. Please see the table below for more information.

modeConsequence
Active modeActive mode uses Microsoft Defender Antivirus as the primary antivirus application on the device. Files are scanned, threats are addressed, and threats detected are reported in your organization’s security reports and in your Windows Security app.
Passive modeIn passive mode, Microsoft Defender Antivirus is not used as the primary antivirus application on the device. Files are scanned and threats detected are reported but not remedied by Microsoft Defender Antivirus.

Microsoft Defender Antivirus can only run in passive mode on endpoints that are integrated with Microsoft Defender for Endpoint.

Please see Windows Defender Antivirus Management with Intune, and How to Secure FTP Login Issue: NAT Router Configuration Needed for Passive Mode and Port Forwarding.

Set Microsft Defender Antivirus to Active Mode

If you have reasons to set the Microsoft Defender Antivirus to Active Mode again. Use the follow the same steps as above. But this time, set the value to 0.

On your Windows Server device, open Registry Editor as an administrator.

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection.

Set or define an REG_DWORD entry called ForceDefenderPassiveMode, and set its value to 0.

Set-Mode-to-Active-

Reboot the device.

Please, see how to shrink and create new partition on Windows Server, how to Fix long path names to files on SQL Server installation media error, and how to Install SQL Server Management Studio 21 on Windows Server.

Am I running in Passive mode?

You can determine if Microsoft Defender Antivirus is running in Passive Mode on a Windows Server, especially when another antivirus or endpoint protection platform like Trellix, Symantec, or CrowdStrike is installed.

To check this, use PowerShell as shown below. This allows you to confirm Defender’s current mode and avoid any potential conflicts with your primary antivirus solution.

Get-MpComputerStatus | Select-Object AMRunningMode
Device not running in passive mode

As shown above, Windows Defender Antivirus is not running because it’s in Passive Mode. You can also check this using the registry key below.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender

A value of 0 means Passive Mode is disabled, while a value of 1 means Passive Mode is enabled.

I hope you found this post useful on how to set Microsoft Defender Antivirus to Passive or Active Mode. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Anti-Virus Solution, Security | Vulnerability Scans and Assessment, Windows Server Tags:Defender, Defender Antivirus, Microsoft Windows, Windows Server 2016

Post navigation

Previous Post: Various ways to copy files from host to VMware Workstation VM
Next Post: Missing Windows Defender? Install and manage Microsoft Defender via Windows Security on Windows Server

Related Posts

  • EC2
    How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
  • PetitPotam
    PetitPotam attack on Active Directory Certificate Services: How to mitigate NTLM Relay PetitPotam attack on AD CS Security | Vulnerability Scans and Assessment
  • How to Disable TLS 1.0, TLS 1.1 and TLS 1   banner
    How to Disable TLS 1.0, TLS 1.1 and TLS 1.2 in Windows Using GPO Security | Vulnerability Scans and Assessment
  • article 1280x720.aa742702
    How to create a custom view in Windows Event Viewer Windows Server
  • Configure AD LDAPs
    Generate a self-signed SSL certificate: Enable LDAP over SSL Windows Server
  • Feature image 1
    Configure and validate Exclusions for Microsoft Defender Antivirus scans Anti-Virus Solution

More Related Articles

EC2 How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift
PetitPotam PetitPotam attack on Active Directory Certificate Services: How to mitigate NTLM Relay PetitPotam attack on AD CS Security | Vulnerability Scans and Assessment
How to Disable TLS 1.0, TLS 1.1 and TLS 1   banner How to Disable TLS 1.0, TLS 1.1 and TLS 1.2 in Windows Using GPO Security | Vulnerability Scans and Assessment
article 1280x720.aa742702 How to create a custom view in Windows Event Viewer Windows Server
Configure AD LDAPs Generate a self-signed SSL certificate: Enable LDAP over SSL Windows Server
Feature image 1 Configure and validate Exclusions for Microsoft Defender Antivirus scans Anti-Virus Solution

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • cockpit
    Installation and configuration of Cockpit on CentOS Linux Linux
  • image 78
    How to enable LDAP over SSL with a third-party Certificate such as DigiCert Windows
  • burp20
    Install and use Burp Suite for Web Application Security Testing Security | Vulnerability Scans and Assessment
  • Featured image   The Local Device Name is Already in Use
    How to Fix The Local Device Name is Already in Use Windows
  • azure just in time
    How to secure access to your Virtual Machine with Just-in-Time (JIT) VM Access AWS/Azure/OpenShift
  • FQWD
    Logoff or Restart or Shutdown Windows PC remotely Windows
  • image 64
    How to install Fax Server on a Windows Server Windows
  • screenshot 2020 03 20 at 16.10.20
    How to install Ansible on Windows with Cygwin Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.