Share via

An option to fast disable Windows Defender via Powershell in 20H2?

Anonymous
2021-03-09T19:40:26+00:00

Hello!

I really need some help with disabling Windows Defender automatically using powershell or any legitimate 3rd party tool (which has an option to be run from a command line). 

I have to configure Windows PC and VM's. It is Windows 10 Pro (not server) and they are not connected to AD. So, I can do it just via local policy. However, I can not edit local policies via powershell. Again, solutions I've found just not works. 

Through the internet there are a lot of not working solutions related to editing registry editors. 

I will really appreciate help.

BR,

Windows for home | Windows 10 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2021-03-10T18:01:50+00:00
    1. Press the Windows + X key combinations, select Administrator Command Prompt and paste:

    REG ADD "HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows Defender" / V DisableAntiSpyware / t REG_DWORD / D 1 / F

    1. Then press Enter.
    2. Restart the system and check if the behavior persists.

    If you get errors, do the steps manually.

    1. Press the Windows + R keys, type Regedit, click OK. The Windows 10 Registry Editor will open.
    2. Walk between the HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows Defender registry keys.
    3. Within the Windows Defender key, right-click and create a DWORD Value (32 bits). Name it DisableAntiSpyware and set it to 1, click OK.

    Then open Windows Defender, check to see if the behavior persists.

    I hope I helped, even more!

    Credits: Gregori_Martins

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-03-09T20:42:53+00:00

    Hi, scriptbots

    How are you? Welcome to the Microsoft community!

    My name is Juliana, I'm an independent advisor, I'm here to help you in the best possible way.

    1. Press Windows + X and select WIndows Powershell (Admin);
    2. In the window that opens, enter the command:

    Set-MpPreference -ScanAvgCPULoadFactor 25

    Press Enter

    With this procedure, the maximum CPU consumption by Windows Defender drops from 50 to 25 percent.

    Windows 10 will not give you any warning that the process was successful, but the change can be noticed by monitoring the resource consumption of the machine by the "Task Manager".

    Although we changed the value to 25, it is up to you to define how much Windows Defender can consume from your PC's CPU.

    If the change made does not please you, to revert it, just use the command

    Set-MpPreference -ScanAvgCPULoadFactor 50

    in Windows PowerShell, as outlined above.

    Windows will return to the default value for Windows Defender CPU consumption.

    If these guidelines have helped you in any way, please click on "I solved my problem" and also mark it as an answer, so you can help other people.

    We are always available!

    Until later!

    Credits: RicardoGuerlandi

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-05-14T17:21:28+00:00

    I am not a high tech user, but I am having problems with downloading some astrology software, Solar Fire v9.  I have an acer E15 laptop and due to unrelated issues (eg printer problems) I contacted MS support and one of your remote techs initiated a new download of W10 - 20H2 to replace an older version, saving my personal files. This did remove the astro program along with Office 365, which was successfully reinstalled, The program downloads, but after the initial screen, it flips to a page of broken template lines which instantly disappears.   I have been in communication with the vendor, and this has apparently happened to other users. They want me to try again, but after uninstalling the non-working program, they want me to temporarily disable windows defender, and try to install again. I have been looking on line and cannot find an easy way of doing it with instructions that match what I see on my screen! I need help!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2021-03-11T18:36:12+00:00

    Hello Juh soares,

    Thanks for advice. But it does not work on windows 20H2.

    I'm thinking about local policy changing. So, after some research I probably will post it here.

    Was this answer helpful?

    0 comments No comments