Can not disable Windows Defender via group policies

Armin Zingler 21 Reputation points
2020-10-10T21:57:24.89+00:00

Hi,

I'm using Windows 10 x64 Professional. It's a standalone machine, and I'm an administrator.

Whenever I start gpedit and disable Windows Defender Antivirus (Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus) by activating the policy "Turn off Windows Defender Antivirus", the change does not persist. Instead, the setting is reverted immediatelly.

Using procmon, I was able to capture the behavior. The cause is that MsMpEng reenables itself:

31300-grafik.png

In the first line, svchost (group policy services) correctly sets the value to 1 as a consequence of me changing the policy via gpedit.
In the last line, msmpeng deletes this value. My question is: Why? It shouldn't do this because it's my wish to disable it. What can I do to prevent this?

Link to a video (30 s) showing the behavior:
https://1drv.ms/v/s!AmeoV9EbVmSSgn0HC3ZHxIqCbW2H

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,746 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,754 questions
{count} votes

Accepted answer
  1. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2020-10-13T02:59:41.647+00:00

    Hello @Armin Zingler ,

    Thank you for your update.

    We try to check the following options to see if it helps.
    1.If we install all the updates for this machine.
    2.We can try to perform a clean boot and check if this group policy change is persistent.

    How to perform a clean boot in Windows
    https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows

    3.Or reset the machine operating system.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Kapil Arya 7,596 Reputation points MVP
    2020-10-11T10:48:44.437+00:00

    Hello,

    Do you ever installed third-party AV program? If yes, try completely removing it and see if it makes any differences.

    Regards.


  2. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2020-10-12T03:00:34.127+00:00

    Hello @Armin Zingler ,

    Thank you for posting here.

    From the following link, we can see:
    31437-anti.png

    Microsoft Defender Antivirus compatibility
    https://learn.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-antivirus/microsoft-defender-antivirus-compatibility

    Hope the infomation above is helpful.

    Best Regards,
    Daisy Zhou


  3. ProphetOfRegret 31 Reputation points
    2021-05-04T07:44:55.77+00:00

    Hey,

    I think I found out a very good workaround for the POLICY Setting getting reset to "Not Configured" every time you restart Group Policy Editor. I had the same problem and guessed out (correctly) that it was MsMpEng.exe running in the background that was resetting the policy back to "Not Configured".

    So, before making any changes to the policy, head over to Task Manager, then to Performance Monitor from the Performance tab. Find MsMpEng.exe in any of the tabs in it (mostly on top in Memory or CPU tabs) and click on Suspend Process.

    Then make the changes as required in the Group Policy Editor. It won't get reverted back. Please reply if it works, or didn't work.

    NOTE :- Keep the MsMpEng.exe process suspended for as long as you like XD

    0 comments No comments