You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Script_Run.bat
+4-83Lines changed: 4 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,21 @@ IF "%1"== "/y" GOTO :removedef
6
6
IF"%1"=="/Y"GOTO :removedef
7
7
IF"%1"=="/N"GOTO :tweaksdef
8
8
IF"%1"=="/n"GOTO :tweaksdef
9
-
IF"%1"=="/e"GOTO :enabledefanti
10
-
IF"%1"=="/E"GOTO :enabledefanti
11
-
IF"%1"=="/M"GOTO :tweaksdefanti
12
-
IF"%1"=="/m"GOTO :tweaksdefanti
13
-
IF"%1"=="/R"GOTO :enabledef
14
-
IF"%1"=="/r"GOTO :enabledef
15
9
:--------------------------------------
16
10
17
11
:--------------------------------------
18
12
:menu
19
13
cls
20
-
echo ------Defender Remover Script , version 12.6------
14
+
echo ------Defender Remover Script , version 12.6.4------
21
15
echo Select an option:
22
16
echo.
23
-
echo Press (Y) for removing Defender and Security Components (old method, breaking Windows Updates/UWP in some version of Windows, removes files and unregisters classes)
24
-
echo Press (N) for disabling Defender and Security Components (safe)
25
-
echo Press (M) for disabling Defender Antivirus only (safe)
26
-
echo Press (E) for enabling Defender (restore actions where M is pressed)
27
-
echo Press (R) for enabling Defender and Security Components (restore actions where N is pressed)
28
-
echo.
17
+
echo Press (Y) for removing Defender and Security Components (old method, breaking Windows Updates/UWP in some version of Windows, removes files and unregisters classes) (working for new method)
18
+
echo Press (N) for toggle Defender and Security Components with Safe Method.
29
19
set /P c=Select one of the options to continue:
30
20
31
21
:: Check if the input is one of the valid keys
32
22
if /I "%c%"EQU"Y"goto :removedef
33
23
if /I "%c%"EQU"N"goto :tweaksdef
34
-
if /I "%c%"EQU"E"goto :enabledefanti
35
-
if /I "%c%"EQU"M"goto :tweaksdefanti
36
-
if /I "%c%"EQU"R"goto :enabledef
37
24
38
25
:: If none of the valid keys are pressed, do nothing
39
26
goto :eof
@@ -44,9 +31,6 @@ cls
44
31
echo Killing Tasks...
45
32
for /f "delims="%%iin (Remover\TKL.txt) do (GetTrustedInstaller.exe "C:\Windows\System32\taskkill.exe /f /im ""%%i""") >nul
46
33
cls
47
-
echo Removing Windows Security UWP...
48
-
for /d %%fin ("C:\Program Files\WindowsApps\Microsoft.SecHealthUI*") do (GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k rmdir /s /q ""%%f""") >nul
49
-
cls
50
34
echo Applying Registry Files...
51
35
for /r %%kin (Remover\REGS\*.reg) do (GetTrustedInstaller.exe "C:\Windows\regedit.exe /s ""%%k""") >nul
52
36
cls
@@ -61,70 +45,7 @@ goto :eof
61
45
:--------------------------------------
62
46
63
47
:tweaksdef
64
-
if"%SAFEBOOT_OPTION%"==""goto error
65
-
CLS&echo Disable Defender and Security Components...
0 commit comments