summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
diff options
context:
space:
mode:
authorWindowsAddict <[email protected]>2025-01-30 00:51:46 +0530
committerWindowsAddict <[email protected]>2025-01-30 00:51:46 +0530
commitbe44b2d887e04ffcce3c987dbf3cc19ba695d912 (patch)
tree3ebf04972fda5da7a390909167c6f72e4867d84e /MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
parent0c88f6bc2c6b730ab2512bc5368173ea89c44657 (diff)
downloadMicrosoft-Activation-Scripts-be44b2d887e04ffcce3c987dbf3cc19ba695d912.zip
Don't check tasks if csvlk is installed, don't show wlms in red
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/HWID_Activation.cmd')
-rw-r--r--MAS/Separate-Files-Version/Activators/HWID_Activation.cmd6
1 files changed, 2 insertions, 4 deletions
diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
index bfe19e8..8c192be 100644
--- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
@@ -1378,11 +1378,7 @@ call :dk_color2 %Red% "Checking ClipSVC " %Blue% "[System
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
if exist "%SysPath%\wlms\wlms.exe" (
-if %winbuild% LSS 9200 (
echo Checking Eval WLMS Service [Found]
-) else (
-call :dk_color %Red% "Checking Eval WLMS Service [Found]"
-)
)
@@ -1483,6 +1479,7 @@ call :dk_color %Red% "Checking SPP tokens.dat [Not Found] [%toke
if %winbuild% GEQ 9200 if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*EvalEdition~*.mum" (
+%psc% "Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description" %nul2% | findstr /i "KMS_" %nul1% || (
for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State" %nul6%') do (set taskinfo=%%a)
echo !taskinfo! | find /i "Ready" %nul% || (
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
@@ -1492,6 +1489,7 @@ call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, Syste
if not defined error call :dk_color %Blue% "Reboot your machine using the restart option."
)
)
+)
:: This code checks if SPP has permission access to tokens folder and required registry keys. It's often caused by gaming spoofers.