File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11@ echo off
2+ reg add " HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v " DisableAntiSpyware" /t REG_DWORD /d " 1" /f
3+ " C:\Windows\System32\gpupdate.exe" /Target:Computer /Force
4+
25set " controlset = HKLM\SYSTEM\ControlSet001"
36set " services = %controlset% \Services"
4- PowerShell -NonInteractive -NoLogo -NoProfile -C " Set-MpPreference -DisableRealtimeMonitoring 1" > NUL 2 > nul
7+ :: PowerShell -NonInteractive -NoLogo -NoProfile -C "Set-MpPreference -DisableRealtimeMonitoring 1" >NUL 2>nul
58:: Windows Defender
69reg add " %services% \MsSecCore" /v " Start" /t REG_DWORD /d " 4" /f > NUL 2 > nul
710reg add " %services% \MsSecFlt" /v " Start" /t REG_DWORD /d " 4" /f > NUL 2 > nul
Original file line number Diff line number Diff line change 11@ echo off
2+
3+ reg delete " HKLM\Software\Policies\Microsoft\Windows Defender" /v " DisableAntiSpyware" /f > NUL 2 > nul
4+ " C:\Windows\System32\gpupdate.exe" /Target:Computer /Force
5+
26set " services = HKLM\SYSTEM\ControlSet001\Services"
37:: Windows Defender
48reg add " %services% \MsSecCore" /v " Start" /t REG_DWORD /d " 0" /f > NUL 2 > nul
You can’t perform that action at this time.
0 commit comments