Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Microsoft Defender Antivirus does not start beside another antivirus: event 15, 5007 and 5010

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

You open the Services app, find Microsoft Defender Antivirus Service set to manual, try to start it, and get a warning that it started and then stopped. In the logs you may see event 15 in the Application log, and events 5007 and 5010 in the Defender Operational log. Microsoft's page says these "can manifest in the form of several different event IDs, all of which have the same underlying cause": Defender was turned off to keep it compatible with a non-Microsoft antivirus.

The sections below set out the events as Microsoft prints them, how to prove the cause, and what the rules are on Windows 10 and 11 and on Windows Server, where they differ. Before the Fix section only settings are read, apart from one report file that a proof step writes.

What the error means

Microsoft's page lists three associated events.

Event Log Description as printed
15 Application, source Security Center "Updated Windows Defender status successfully to SECURITY_PRODUCT_STATE_OFF."
5007 Microsoft-Windows-Windows Defender/Operational, source Windows Defender "Microsoft Defender Antivirus Configuration has changed. If this is an unexpected event, you should review the settings as this issue could be due to malware." with Old value "Default\IsServiceRunning = 0x0" and New value "HKLM\SOFTWARE\Microsoft\Windows Defender\IsServiceRunning = 0x1"
5010 Microsoft-Windows-Windows Defender/Operational, source Windows Defender "Microsoft Defender Antivirus scanning for spyware and other potentially unwanted software is disabled."

The Old value of event 5007 begins with Default rather than a full registry path, exactly as the page prints it.

The page's explanation for the Services warning is this: "The Microsoft Defender Antivirus Service service on Local Computer started and then stopped. Some services stop automatically if they aren't in use by other services or programs." It then says: "This issue indicates that Microsoft Defender Antivirus was automatically turned off to preserve compatibility with a non-Microsoft antivirus."

Likely causes

The behaviour depends on the operating system and on whether the computer is onboarded to Microsoft Defender for Endpoint. Microsoft's migration page and its compatibility page together give these cases.

Situation What Defender Antivirus does
Windows 10 or Windows 11, not using Defender for Endpoint, non-Microsoft antivirus installed Turned off automatically
Windows 10 or Windows 11 using Defender for Endpoint, non-Microsoft antivirus installed Starts in passive mode, with reduced functionality
Windows Server (2016 and later, and 2012 R2), non-Microsoft antivirus, not onboarded Does not turn itself off. The compatibility page says to disable or uninstall it manually "to prevent problems caused by having multiple antivirus products installed on a server"
Windows Server, onboarded to Defender for Endpoint Does not enter passive mode automatically. Set it with the ForceDefenderPassiveMode setting

Microsoft's migration page says the automatic turn-off "applies only to Windows 10 and Windows 11. Other versions of Windows have different responses to Microsoft Defender Antivirus being run alongside non-Microsoft security software." That sentence matters for a business running servers: on Windows Server 2016 and later, the compatibility page says Defender "doesn't enter passive mode automatically when you install a non-Microsoft antivirus product".

Two other things can turn Defender off, and the migration page lists them under "Generate a detailed report": a Group Policy setting named "Turn off Microsoft Defender Antivirus" set to Enabled, and the registry value DisableAntiSpyware at HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender set to 1. The page says that the policy may have been set by Group Policy, by a Group Policy preference, by a registry key, or in the Windows or Windows Server image by an imaging administrator through GPEdit.exe, LGPO.exe or the registry.

The compatibility page adds a warning for Windows clients: "If the Windows Security Center Service is disabled on Windows Clients then Microsoft Defender Antivirus can't detect non-Microsoft antivirus installations and will stay Active." That produces the opposite problem, two products both active.

Prove the cause before changing anything

All of these only read settings; step 5 also writes one report file.

  1. Read the three events above in Event Viewer. The Operational log is under Applications and Services Logs, then Microsoft, then Windows, then Windows Defender, then Operational. Event 15 is in the Application log.

  2. Open the Services app, with services.msc, find Microsoft Defender Antivirus Service and read its start type. Do not start it yet. Microsoft says it may show as manual and fail to stay running.

  3. Find which antivirus is installed and whether Defender for Endpoint is in use. This decides which row of the table applies.

  4. Check the running mode. Microsoft's compatibility page says the protection status can be viewed with the command below, and that the value of AMRunningMode should be Normal, Passive or EDR Block Mode when Defender is enabled.

Get-MpComputerStatus
  1. Look for a policy that turns Defender off. The page says to generate a report of the active group policies from a Command Prompt run as administrator. Microsoft says the command generates a report located at ./gpresult.html, so run it in a folder where a new file is acceptable.
GPresult.exe /h gpresult.html

In the report, look under the heading Windows Components/Microsoft Defender Antivirus for the policy "Turn off Microsoft Defender Antivirus", and for a registry item with the value name DisableAntiSpyware.

Example (illustrative): on a Windows 11 laptop that has a vendor's antivirus installed and no Defender for Endpoint, event 15 shows SECURITY_PRODUCT_STATE_OFF, the service will not stay started, and the group policy report shows no Defender policy at all. That matches the first row of the table: nothing is broken, because Defender turned itself off on purpose.

Fix

The fix depends on which row of the table you are in, and on a decision the page leaves to you: which product protects the computer. The page says "Microsoft Defender Antivirus automatically turns on if no other antivirus is currently active. You need to turn the non-Microsoft antivirus off to ensure Microsoft Defender Antivirus can run with full functionality."

Microsoft also warns: "Solutions suggesting that you edit the Windows Defender start values for wdboot, wdfilter, wdnisdrv, wdnissvc, and windefend in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services are unsupported, and might force you to reimage your system." Do not use those.

Windows 10 or 11: turn the other antivirus off

Before changing anything, record the three events and the Services state from the proof steps. The page gives no command for this, so the record is your own note.

Risk: the next step turns off the non-Microsoft antivirus so that Defender can take over. For a period, the computer may have no active antivirus, and the page gives no command or method for turning another vendor's product off, because it is that vendor's. If the product is centrally managed, it may be turned back on by its console.

Turn the other product off or uninstall it using that product's own method. Microsoft's page says Defender then "automatically turns on if no other antivirus is currently active", and the compatibility page says that Defender "can be re-enabled automatically if the non-Microsoft antivirus/antimalware product expires, is uninstalled, or otherwise stops providing real-time protection".

To undo it: as general advice, not Microsoft's, use the other product's own console or installer to turn it back on, and expect Defender to go back to its automatic state. The page does not say how Defender and the other product then behave while you switch.

Windows 10 or 11 with Defender for Endpoint: use passive mode

The page says passive mode is available when you use Defender for Endpoint and a non-Microsoft antivirus together. It "allows Microsoft Defender Antivirus to scan files and update itself, but it doesn't remediate threats in passive mode", and behaviour monitoring through real-time protection "isn't available in passive mode, unless Endpoint data loss prevention (DLP) is deployed". The compatibility page adds that the Windows Security Center Service must be enabled. These are requirements, not a command.

Windows Server: choose one of two routes

On a server the compatibility page offers two. Choose by your licensing and tooling.

Route one is passive mode on a server onboarded to Defender for Endpoint. Microsoft says "the ForceDefenderPassiveMode setting needs to be set before onboarding the device", and gives the registry value: path HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection, name ForceDefenderPassiveMode, type REG_DWORD, value 1.

Before you set it, note whether that value already exists and what it holds. The page gives no command for this, so it is general advice.

Risk: the next step changes how Defender behaves on the server by putting it in passive mode, where it does not remediate threats. The page adds a limit: from platform version 4.18.2208.0 on, for a server onboarded to Microsoft Defender for Endpoint, tamper protection allows a switch to active mode but not to passive mode. It says: "When Microsoft Defender Antivirus is set to active mode, tamper protection prevents it from going back into passive mode even when ForceDefenderPassiveMode is set to 1."

Create the value at the path above with type REG_DWORD and data 1, then check the result with the Get-MpComputerStatus command above, looking for AMRunningMode to show Passive.

To undo it: the page gives no removal step. As general advice, not Microsoft's, return the value to what you noted, or remove it if it did not exist. Doing so takes Defender out of passive mode, so it is then active beside the other antivirus unless that product is removed; check AMRunningMode again.

Route two applies when the server is not onboarded. The compatibility page says to "disable/uninstall Microsoft Defender Antivirus manually". It gives the PowerShell cmdlet for Windows Server 2019 and newer, and for Windows Server 2016 it adds a second feature.

Disruptive step: the next command, and on Windows Server 2016 the second command after it, uninstalls a Defender Antivirus feature from the server, and the page says to restart the server to finish. Until another product is active, the server has no antivirus, and the restart ends every session and service on it.

Uninstall-WindowsFeature Windows-Defender

On Windows Server 2016 Microsoft's page also lists a second feature to uninstall, as its own command:

Uninstall-WindowsFeature Windows-Defender-Gui

Restart the server to finish, as the page says.

To undo it: reinstall the feature, as set out in the next section.

If you need to reverse route two: reinstall the feature

Only if you need to reverse route two, Microsoft's page on enabling Defender Antivirus on Windows Server, dated 2026-07-15, gives the reinstall for Windows Server 2019 or later as a DISM command, followed by a reboot. For Windows Server 2016 the same page lists three features (Windows-Defender-Features, Windows-Defender and Windows-Defender-Gui).

Risk: the next command puts Defender back on the server, beside whatever product replaced it. The compatibility page warns of problems caused by having multiple antivirus products installed on a server. Run it only when that product is also being removed or when Defender is meant to be the product that runs.

Dism /Online /Enable-Feature /FeatureName:Windows-Defender

That page also says that re-enabling "doesn't automatically install the platform update", so check the platform afterwards.

Confirm the fix

  • On Windows 10 or 11, Defender Antivirus Service runs, and event 5000 appears in the Operational log. Microsoft's page lists 5000 as "Real-time protection is enabled."
  • On a server using passive mode, Get-MpComputerStatus shows AMRunningMode as Passive.
  • On a server with Defender uninstalled, the other product is the only active antivirus and reports itself as active.
  • The Services warning no longer appears when the service is started.

What to watch afterwards

  • A non-Microsoft antivirus that expires or is uninstalled. The compatibility page says Defender can then be re-enabled automatically.
  • A Windows Security Center Service that is stopped, which leaves two antivirus products active on a client.
  • Group Policy or an image that sets DisableAntiSpyware, which the migration page lists as a way Defender is turned off.
  • Limited periodic scanning. The page describes it as a feature for end users when Defender turns itself off, and says it "isn't recommended in enterprise environments".

Risks and limits

These steps have not been run or lab-tested. Microsoft's page gives no way to turn another vendor's product off. The behaviour on Windows Server differs from Windows 10 and 11 and is documented on a different page, so check the server's version against the compatibility page.

Microsoft's pages are dated 2026-04-19 and 2026-08-21; the platform version in the tamper protection rule, 4.18.2208.0, is Microsoft's. Check the current pages before acting.

Sources