Alex Hirsch
9 years ago
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||||
|
# Description: |
||||
|
# This script will disable Windows Defender via Group Policies. |
||||
|
|
||||
|
echo "Disabling Windows Defender" |
||||
|
$reg = @" |
||||
|
Windows Registry Editor Version 5.00 |
||||
|
|
||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender] |
||||
|
"DisableAntiSpyware"=dword:00000001 |
||||
|
"DisableRoutinelyTakingAction"=dword:00000001 |
||||
|
|
||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Policy Manager] |
||||
|
|
||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Real-Time Protection] |
||||
|
"DisableRealtimeMonitoring"=dword:00000001 |
||||
|
"@ |
||||
|
$regfile = "$env:windir\Temp\registry.reg" |
||||
|
$reg | Out-File $regfile |
||||
|
regedit /s $regfile |
||||
|
rm $regfile |
Binary file not shown.
Loading…
Reference in new issue