From 2aeb74429cdb6a7934f0c08b079f6b76189b4628 Mon Sep 17 00:00:00 2001 From: awesome-windows11 <86190960+awesome-windows11@users.noreply.github.com> Date: Fri, 16 Jul 2021 00:31:52 +0300 Subject: [PATCH] Update script.bat --- твики/WindowsDefender/script.bat | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/твики/WindowsDefender/script.bat b/твики/WindowsDefender/script.bat index 5b57cc3..14f2dee 100644 --- a/твики/WindowsDefender/script.bat +++ b/твики/WindowsDefender/script.bat @@ -18,10 +18,6 @@ reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthServ reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 4 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f -) else if "%vibor%"=="1" ( -reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v Start /t REG_DWORD /d 2 /f -reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 2 /f -reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /f if exist "%ProgramFiles%\Windows Defender Advanced Threat Protection" ( sc config WinDefend start=disabled >nul && net stop WinDefend >nul @@ -54,7 +50,10 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "S 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 +reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 2 /f +reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /f ) else ( Echo Wrong! & goto nashalo )