Restore code
This commit is contained in:
18
bin/DisableDefenderWinDeploy.cmd
Normal file
18
bin/DisableDefenderWinDeploy.cmd
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
title Disable Windows Defender - Batch Edition
|
||||
echo Disabling Windows Defender...
|
||||
sc config WinDefend start=disabled
|
||||
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
|
||||
echo Final touches...
|
||||
|
||||
reg add "HKLM\System\Setup" /v "CmdLine" /t REG_SZ /d "" /f
|
||||
reg add "HKLM\System\Setup" /v "SystemSetupInProgress" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "OOBEInProgress" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupType" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupPhase" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupSupported" /t REG_DWORD /d "1" /f
|
||||
echo Restarting...
|
||||
wmic os where primary=1 reboot
|
||||
del /F /Q "C:\Temp.cmd"
|
||||
pause > nul
|
||||
exit
|
18
bin/EnableDefenderWinDeploy.cmd
Normal file
18
bin/EnableDefenderWinDeploy.cmd
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
title Disable Windows Defender - Batch Edition
|
||||
echo Disabling Windows Defender...
|
||||
sc config WinDefend start=auto
|
||||
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /f
|
||||
echo Final touches...
|
||||
|
||||
reg add "HKLM\System\Setup" /v "CmdLine" /t REG_SZ /d "" /f
|
||||
reg add "HKLM\System\Setup" /v "SystemSetupInProgress" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "OOBEInProgress" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupType" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupPhase" /t REG_DWORD /d "0" /f
|
||||
reg add "HKLM\System\Setup" /v "SetupSupported" /t REG_DWORD /d "1" /f
|
||||
echo Restarting...
|
||||
wmic os where primary=1 reboot
|
||||
del /F /Q "C:\Temp.cmd"
|
||||
pause > nul
|
||||
exit
|
Reference in New Issue
Block a user