Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- cd %systemroot%\system32
- call :IsAdmin
- :_Start
- Cls & Mode CON LINES=11 COLS=60 & Color 0D &Title Created By FreeBooter
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Type (D) letter to Disable Windows Defender º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Echo.
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Type (E) letter to Enable Windows Defender º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Set /p input= RESPONSE:
- If /i Not %input%==D (Goto :_Ex) Else (Goto :_Disbale)
- :_Ex
- If /i Not %input%==E (Goto :_Start) Else (Goto :_Enable)
- :_Disbale
- :: Disable Windows Defender with Group Policy.
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "1" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "1" /f > Nul
- Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title - WARNING -
- Echo.
- Echo.
- Echo Windows Defender Disabled
- Ping -n 5 localhost > Nul
- Exit
- :_Enable
- :: Enable Windows Defender with Group Policy.
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "0" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "0" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableOnAccessProtection" /t REG_DWORD /d "0" /f > Nul
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableScanOnRealtimeEnable" /t REG_DWORD /d "0" /f > Nul
- Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title - WARNING -
- Echo.
- Echo.
- Echo Windows Defender Enabled
- Ping -n 5 localhost > Nul
- Exit
- :IsAdmin
- Reg.exe query "HKU\S-1-5-19\Environment"
- If Not %ERRORLEVEL% EQU 0 (
- Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title - WARNING -
- Echo.
- Echo.
- Echo YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
- Pause > Nul & Exit
- )
- Cls
- goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement