From 9bbd02cc91c44713af91f066bfa5ea5ed898f1fa Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Fri, 8 Nov 2024 22:16:51 +0530 Subject: Update PUP detection --- MAS/All-In-One-Version-KL/MAS_AIO.cmd | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'MAS/All-In-One-Version-KL/MAS_AIO.cmd') diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index aefa363..cd6bcf6 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -1310,11 +1310,10 @@ exit /b set w= set results= -if exist "%ProgramFiles%\KM%w%Spico" set pupfound1= KM%w%Spico -if exist "%SysPath%\Tasks\R@1n-KMS" set pupfound2= R@inKMS -reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\taskcache\tasks" /f Path /s | find /i "AutoPico" %nul% && set pupfound1= KM%w%Spico -reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\taskcache\tasks" /f Path /s | find /i "R@1n" %nul% && set pupfound2= R@inKMS -set pupfound=%pupfound1%%pupfound2% +if exist "%ProgramFiles%\KM%w%Spico" set pupfound= KM%w%Spico +if not defined pupfound ( +reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\taskcache\tasks" /f Path /s | find /i "AutoPico" %nul% && set pupfound= KM%w%Spico +) set hcount=0 for %%# in (avira.com kaspersky.com virustotal.com mcafee.com) do ( @@ -1336,6 +1335,13 @@ set fixes=%fixes% %mas%remove_mal%w%ware call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%remove_mal%w%ware" echo: ) + +:: Remove the scheduled task of R@1n-KMS (old version) that runs the activation command every minute, as it leads to high CPU usage. + +if exist %SysPath%\Tasks\R@1n-KMS ( +for /f %%A in ('dir /b /a:-d %SysPath%\Tasks\R@1n-KMS %nul6%') do (schtasks /delete /tn \R@1n-KMS\%%A /f %nul%) +) + exit /b ::======================================================================================================================================== -- cgit v1.2.3