Britec Tech Support Forum

Full Version: How to Disable Windows Defender Permanently in Windows 10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to Disable Windows Defender Permanently in Windows 10

Not everyone likes Windows Defender and what happens if you want to disable it? well it will re-enable itself on its own accord, even if you turn the radio button to the off position.
(Example)
[attachment=1477]

If you have the Windows 10 Professional version, you can use Group Policy Editor.


Here's how to permanently disable it in group policy:

  1. Type in the Run box gpedit.msc and press enter
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Defender.
  3. Now double click on "Turn off Windows Defender"
  4. Now select "Enabled" > Apply > OK.
  5. Now just Close Group Policy Editor.
(Example)
[attachment=1479]
[attachment=1480]

Don't have Windows 10 Professional?


Follow these steps:

• Open Notepad
• Copy & Paste the code in the box below 
• Now Save as disable_windows_defender.ps1 and exit out of notepad
• Now right click disable_windows_defender.ps1 and Run with Administrator rights 
• Windows Defender should now be disabled in Windows 10

Code:
#   Description:
# This script disables Windows Defender.

$tasks = @(
   "\Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance"
   "\Microsoft\Windows\Windows Defender\Windows Defender Cleanup"
   "\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan"
   "\Microsoft\Windows\Windows Defender\Windows Defender Verification"
)

foreach ($task in $tasks) {
   $parts = $task.split('\')
   $name = $parts[-1]
   $path = $parts[0..($parts.length-2)] -join '\'

   echo "Trying to disable scheduled task $name"
   Disable-ScheduledTask -TaskName "$name" -TaskPath "$path"
}

echo "Disabling Windows Defender via Group Policies"
mkdir -Force "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender"
sp "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender" "DisableAntiSpyware" 1
sp "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender" "DisableRoutinelyTakingAction" 1
mkdir -Force "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Real-Time Protection"
sp "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Real-Time Protection" "DisableRealtimeMonitoring" 1

echo "Removing Windows Defender context menu item"
si "HKLM:\SOFTWARE\Classes\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}\InprocServer32" ""
Source
Finally if you like you use programs or apps to do your dirty work, why not try NoDefender app to Disable or enable Windows Defender in Windows 10

[attachment=1478]

Download NoDefender App

Just unpack and follow the on screen messages to disable Windows Defender.
super job
Thanks Compton
Sweet Britec
Great! What happens when you reboot the computer? Does it re-activate?
It will do Timster if you don't disable it this way.
Does it work in Win10 anniversary update with registry editor?


should work
thanks for the reply Compton