opus-nt/mods/[hell]/disable windows defender/modscript.py
2022-04-07 13:40:12 +02:00

14 lines
1.3 KiB
Python

# Disable Tamper Protection
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender\\Features","/v","TamperProtection","/t","REG_DWORD","/d","0x00000004","/f"])
# Disable real time protection
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableRealtimeMonitoring","/t","REG_DWORD","/d","0x00000001","/f"])
# Disable sample submission
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SubmitSamplesConsent","/t","REG_DWORD","/d","0x00000002","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SpynetReporting","/t","REG_DWORD","/d","0x00000000","/f"])
# I'm tired of this...
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableBehaviorMonitoring","/t","REG_DWORD","/d","0x00000001","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableOnAccessProtection","/t","REG_DWORD","/d","0x00000001","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableScanOnRealtimeEnable","/t","REG_DWORD","/d","0x00000001","/f"])