mirror of
https://github.com/W4RH4WK/Debloat-Windows-10.git
synced 2024-11-17 15:25:37 +00:00
17 lines
625 B
PowerShell
17 lines
625 B
PowerShell
# Description:
|
|
# This script will disable Windows Defender via Group Policies.
|
|
|
|
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
|
|
|
|
echo "Disabling Windows Defender"
|
|
Import-Registry(@"
|
|
[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
|
|
"@)
|