From 7a759c9e129ae2b39dd15b0869e784d516fbf5d5 Mon Sep 17 00:00:00 2001 From: awesome-windows11 <86190960+awesome-windows11@users.noreply.github.com> Date: Fri, 16 Jul 2021 00:33:51 +0300 Subject: [PATCH] Update script.bat --- .../WindowsDefender/script.bat" | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git "a/\321\202\320\262\320\270\320\272\320\270/WindowsDefender/script.bat" "b/\321\202\320\262\320\270\320\272\320\270/WindowsDefender/script.bat" index 14f2dee..30d0f79 100644 --- "a/\321\202\320\262\320\270\320\272\320\270/WindowsDefender/script.bat" +++ "b/\321\202\320\262\320\270\320\272\320\270/WindowsDefender/script.bat" @@ -42,13 +42,7 @@ reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\SmartScreen" /v "Conf reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SpyNetReporting" /t REG_DWORD /d "0" /f >nul reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d "2" /f >nul for /f %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx" /s /k /f "SecHealthUI" ^| find /i "SecHealthUI" ') do (reg delete "%%i" /f >nul 2>&1) -call :policies - -:policies -for /f "tokens=1* delims=:" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v SettingsPageVisibility') do set "hidelist=%%j" -reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "SettingsPageVisibility" /t REG_SZ /d "hide:windowsdefender;%hidelist%" /f >nul -reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.Defender.SecurityCenter" /v "Enabled" /t REG_DWORD /d "0" /f >nul -reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" /v "Enabled" /t REG_DWORD /d "0" /f >nul +) ) else if "%vibor%"=="1" ( reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v Start /t REG_DWORD /d 2 /f