This commit is contained in:
Flowseal
2025-09-20 17:04:23 +03:00
parent 10ae6c6cf2
commit 2a4e602621

View File

@@ -457,7 +457,7 @@ echo:
tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul
set "winws_running=!errorlevel!"
sc query WinDidvert | findstr /I "RUNNING STOP_PENDING" > nul
sc query "WinDivert" | findstr /I "RUNNING STOP_PENDING" > nul
set "windivert_running=!errorlevel!"
if !winws_running! neq 0 if !windivert_running!==0 (
@@ -491,6 +491,7 @@ if !winws_running! neq 0 if !windivert_running!==0 (
) else (
call :PrintYellow "[?] Attempting to delete WinDivert again..."
net stop "WinDivert" >nul 2>&1
sc delete "WinDivert" >nul 2>&1
sc query "WinDivert" >nul 2>&1
if !errorlevel! neq 0 (