Restore code

This commit is contained in:
2025-06-06 11:24:53 +02:00
commit d8235a92fc
6 changed files with 844 additions and 0 deletions

View 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

View 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