Skip to content

Commit

Permalink
2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsAddict committed Sep 30, 2023
1 parent bc25de6 commit cad5f6f
Show file tree
Hide file tree
Showing 12 changed files with 499 additions and 522 deletions.
482 changes: 239 additions & 243 deletions MAS/All-In-One-Version/MAS_AIO.cmd

Large diffs are not rendered by default.

47 changes: 11 additions & 36 deletions MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exit /b
::========================================================================================================================================

set "blank="
set "mas=mass%blank%grave.dev"
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"

:: Check if Null service is working, it's important for the batch script

Expand All @@ -73,7 +73,7 @@ echo:
echo Null service is not running, script may crash...
echo:
echo:
echo Help - https://%mas%/troubleshoot.html
echo Help - %mas%troubleshoot.html
echo:
echo:
ping 127.0.0.1 -n 10
Expand Down Expand Up @@ -295,7 +295,7 @@ echo Evaluation Editions cannot be activated.
echo You need to install full version of %winos%
echo:
echo Download it from here,
echo https://%mas%/genuine-installation-media.html
echo %mas%genuine-installation-media.html
goto dk_done
)
)
Expand Down Expand Up @@ -450,7 +450,7 @@ if not defined key (
echo [%winos% ^| %winbuild% ^| SKU:%osSKU%]
echo Unable to find this product in the supported product list.
echo Make sure you are using updated version of the script.
echo https://%mas%
echo %mas%
echo:
goto dk_done
)
Expand Down Expand Up @@ -625,7 +625,7 @@ if defined resfail (
set error=1
echo:
call :dk_color %Red% "Checking Licensing Servers [Failed To Connect]"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " https://%mas%/licensing-servers-issue"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " %mas%licensing-servers-issue"
)
)

Expand Down Expand Up @@ -658,7 +658,7 @@ echo "%error_code%" | findstr /i "0x80072e 0x80072f" %nul% && (
set error=1
echo:
call :dk_color %Red% "Checking Internet Issues [Found] [%error_code%]"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " https://%mas%/licensing-servers-issue"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " %mas%licensing-servers-issue"
)
)

Expand All @@ -673,8 +673,9 @@ if defined notworking (
call :dk_color %Blue% "At the time of writing this, HWID Activation was not supported for this product."
call :dk_color %Blue% "Use KMS38 Activation option."
) else (
if not defined error call :dk_color %Blue% "%_fixmsg%"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " https://%mas%/troubleshoot"
call :dk_color %Blue% "HWID Activation is not working. Use KMS38 Activation option for now."
REM if not defined error call :dk_color %Blue% "%_fixmsg%"
call :dk_color2 %_White% "Check this page for help" %_White% " %mas%troubleshoot"
)
)

Expand Down Expand Up @@ -756,19 +757,6 @@ $guidsString = $guids -join " "
$guidsString
:getactivationid:

:: Get SvcRestartTask info

:gettaskinfo:
$task = Get-ScheduledTask | Where-Object { $_.TaskName -eq 'SvcRestartTask' -and $_.TaskPath -eq '\Microsoft\Windows\SoftwareProtectionPlatform\' }
$info = $task | Get-ScheduledTaskInfo
if ($info.LastRunTime -match 99) {
$task | Start-ScheduledTask
Start-Sleep -Seconds 3
$info = $task | Get-ScheduledTaskInfo
}
"$($task.State) $($info.LastTaskResult) $($info.LastRunTime)"
:gettaskinfo:

:: Check wmic.exe

:dk_ckeckwmic
Expand Down Expand Up @@ -943,7 +931,7 @@ if /i %dism_error%==[0x800F0805] (
for %%# in (4 125 126 188 191 205) do if "%osSKU%"=="%%#" (
call :dk_color %Blue% "Evaluation Windows can not be activated and different License install may lead to errors."
call :dk_color %Blue% "It is recommended to install full version of %winos%."
call :dk_color %Blue% "You can download it from https://%mas%/genuine-installation-media.html"
call :dk_color %Blue% "You can download it from %mas%genuine-installation-media.html"
set showfix=1
)
)
Expand Down Expand Up @@ -1011,7 +999,7 @@ set error=1

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found]"
call :dk_color %Blue% "Possibly Caused By Gaming Spoofers. Help: https://%mas%/troubleshoot"
call :dk_color %Blue% "Possibly Caused By Gaming Spoofers. Help: %mas%troubleshoot"
set error=1
set showfix=1
)
Expand Down Expand Up @@ -1059,19 +1047,6 @@ call :dk_color %Red% "Checking sppsvc.exe File [Not Found]"
)


set task=
set taskerror=
if not defined wmifailed if not defined officeact (
for /f "delims=" %%a in ('%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':gettaskinfo\:.*';iex ($f[1]);"') do (set task=%%a)
echo "!task!" | find /i "Ready 0 " %nul% || set taskerror=1
echo "!task!" | find "99" %nul% && set taskerror=1
if defined taskerror (
call :dk_color %Gray% "Checking SvcRestartTask Last Run [Issues Found, !task!]"
call :dk_color %Gray% "Windows may face issues in keeping activation. Help: https://%mas%/troubleshoot"
)
)


:: Below checks are performed if required services are not disabled or corrupted + if there is any error + slmgr /dlv errorlevel is not Zero + no fix was shown before

set wpaerror=
Expand Down
44 changes: 9 additions & 35 deletions MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exit /b
::========================================================================================================================================

set "blank="
set "mas=mass%blank%grave.dev"
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"

:: Check if Null service is working, it's important for the batch script

Expand All @@ -76,7 +76,7 @@ echo:
echo Null service is not running, script may crash...
echo:
echo:
echo Help - https://%mas%/troubleshoot.html
echo Help - %mas%troubleshoot.html
echo:
echo:
ping 127.0.0.1 -n 10
Expand Down Expand Up @@ -337,7 +337,7 @@ echo Evaluation Editions cannot be activated.
echo You need to install full version of %winos%
echo:
echo Download it from here,
echo https://%mas%/genuine-installation-media.html
echo %mas%genuine-installation-media.html
)
goto dk_done
)
Expand All @@ -356,7 +356,7 @@ if not exist "!_work!\clipup.exe" (
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] version.
echo It's required for KMS38 Activation.
echo Check below page on how to activate it.
echo https://%mas%/kms38.html
echo %mas%kms38.html
goto dk_done
)
)
Expand Down Expand Up @@ -469,7 +469,7 @@ if not defined key if not defined _gvlk (
echo [%winos% ^| %winbuild% ^| SKU:%osSKU%]
echo Unable to find this product in the supported product list.
echo Make sure you are using updated version of the script.
echo https://%mas%
echo %mas%
echo:
goto dk_done
)
Expand Down Expand Up @@ -697,7 +697,7 @@ goto :k_final

call :dk_color %Red% "Activation Failed"
if not defined error call :dk_color %Blue% "%_fixmsg%"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " https://%mas%/troubleshoot"
call :dk_color2 %Blue% "Check this page for help" %_Yellow% " %mas%troubleshoot"

::========================================================================================================================================

Expand All @@ -722,7 +722,7 @@ if defined _k38 (
%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':regdel\:.*';& ([ScriptBlock]::Create($f[1])) -protect;"
%nul% reg delete "HKLM\%specific_kms%" /f
%nul% reg query "HKLM\%specific_kms%" && (
call :dk_color %Blue% "Protect KMS38 From KMS [Successful] [Locked A Registry Key]"
echo Protect KMS38 From KMS [Successful] [Locked A Registry Key]
) || (
call :dk_color %Red% "Protect KMS38 From KMS [Failed To Lock A Registry Key]"
)
Expand Down Expand Up @@ -856,19 +856,6 @@ if %_wmic% EQU 0 set "chkapp=for /f "tokens=2 delims==" %%a in ('%psc% "(([WMISE
%chkapp% do (if defined applist (call set "applist=!applist! %%a") else (call set "applist=%%a"))
exit /b

:: Get SvcRestartTask info

:gettaskinfo:
$task = Get-ScheduledTask | Where-Object { $_.TaskName -eq 'SvcRestartTask' -and $_.TaskPath -eq '\Microsoft\Windows\SoftwareProtectionPlatform\' }
$info = $task | Get-ScheduledTaskInfo
if ($info.LastRunTime -match 99) {
$task | Start-ScheduledTask
Start-Sleep -Seconds 3
$info = $task | Get-ScheduledTaskInfo
}
"$($task.State) $($info.LastTaskResult) $($info.LastRunTime)"
:gettaskinfo:

:: Check wmic.exe

:dk_ckeckwmic
Expand Down Expand Up @@ -1088,7 +1075,7 @@ if /i %dism_error%==[0x800F0805] (
for %%# in (4 125 126 188 191 205) do if "%osSKU%"=="%%#" (
call :dk_color %Blue% "Evaluation Windows can not be activated and different License install may lead to errors."
call :dk_color %Blue% "It is recommended to install full version of %winos%."
call :dk_color %Blue% "You can download it from https://%mas%/genuine-installation-media.html"
call :dk_color %Blue% "You can download it from %mas%genuine-installation-media.html"
set showfix=1
)
)
Expand Down Expand Up @@ -1156,7 +1143,7 @@ set error=1

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found]"
call :dk_color %Blue% "Possibly Caused By Gaming Spoofers. Help: https://%mas%/troubleshoot"
call :dk_color %Blue% "Possibly Caused By Gaming Spoofers. Help: %mas%troubleshoot"
set error=1
set showfix=1
)
Expand Down Expand Up @@ -1204,19 +1191,6 @@ call :dk_color %Red% "Checking sppsvc.exe File [Not Found]"
)


set task=
set taskerror=
if not defined wmifailed if not defined officeact (
for /f "delims=" %%a in ('%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':gettaskinfo\:.*';iex ($f[1]);"') do (set task=%%a)
echo "!task!" | find /i "Ready 0 " %nul% || set taskerror=1
echo "!task!" | find "99" %nul% && set taskerror=1
if defined taskerror (
call :dk_color %Gray% "Checking SvcRestartTask Last Run [Issues Found, !task!]"
call :dk_color %Gray% "Windows may face issues in keeping activation. Help: https://%mas%/troubleshoot"
)
)


:: Below checks are performed if required services are not disabled or corrupted + if there is any error + slmgr /dlv errorlevel is not Zero + no fix was shown before

set wpaerror=
Expand Down

0 comments on commit cad5f6f

Please sign in to comment.