diff options
| author | WindowsAddict | 2023-10-16 02:50:03 +0000 |
|---|---|---|
| committer | WindowsAddict | 2023-10-16 02:50:03 +0000 |
| commit | 9936a1d3a17411ddcea972d3d416b009ab1c849a (patch) | |
| tree | 50548ecf94546fc8334fc9f6a8b8b58287e34c23 /MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd | |
| parent | a113087f385f9109111de6c587ad606573c9064e (diff) | |
| download | Microsoft-Activation-Scripts-2.3.zip | |
2.32.3
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd | 44 |
1 files changed, 37 insertions, 7 deletions
diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd index db57129..721d707 100644 --- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd @@ -1,3 +1,4 @@ +@set masver=2.3
@setlocal DisableDelayedExpansion
@echo off
@@ -100,7 +101,7 @@ popd cls
color 07
-title KMS38 Activation
+title KMS38 Activation %masver%
set _args=
set _elev=
@@ -193,7 +194,7 @@ set "_batp=%_batf:'=''%" set _PSarg="""%~f0""" -el %_args%
-set "_ttemp=%temp%"
+set "_ttemp=%userprofile%\AppData\Local\Temp"
setlocal EnableDelayedExpansion
@@ -239,6 +240,35 @@ exit /b ::========================================================================================================================================
+:: Check for updates
+
+set -=
+set old=
+
+for /f "delims=[] tokens=2" %%# in ('ping -n 1 updatecheck.mass%-%grave.dev') do (
+if not [%%#]==[] echo "%%#" | find "127.69.%masver%" %nul1% || set old=1
+)
+
+if defined old (
+echo ________________________________________________
+%eline%
+echo You are running outdated version MAS %masver%
+echo ________________________________________________
+echo:
+if not %_unattended%==1 (
+echo [1] Download Latest MAS
+echo [0] Continue Anyway
+echo:
+call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
+choice /C:10 /N
+if !errorlevel!==2 rem
+if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
+)
+)
+cls
+
+::========================================================================================================================================
+
if %_rem%==1 goto :k_uninstall
:k_menu
@@ -246,7 +276,7 @@ if %_rem%==1 goto :k_uninstall if %_unattended%==0 (
cls
mode 76, 25
-title KMS38 Activation
+title KMS38 Activation %masver%
echo:
echo:
@@ -277,7 +307,7 @@ goto :k_menu cls
mode 108, 34
-title KMS38 Activation
+title KMS38 Activation %masver%
echo:
echo Initializing...
@@ -754,7 +784,7 @@ goto :dk_done cls
mode 99, 28
-title Remove KMS38 Protection
+title Remove KMS38 Protection %masver%
%nul% reg delete "HKLM\%specific_kms%" /f
%nul% reg delete "HKU\S-1-5-20\%specific_kms%" /f
@@ -1037,7 +1067,7 @@ set showfix=1 if defined safeboot_option (
set error=1
set showfix=1
-call :dk_color2 %Red% "Checking Boot Mode " %Blue% "[System is running in safe mode. Run in normal mode.]"
+call :dk_color2 %Red% "Checking Boot Mode " %Blue% "[Safe mode found. Run in normal mode.]"
)
@@ -1051,7 +1081,7 @@ call :dk_color2 %Red% "Checking Audit Mode " %Blue% "[IMAGE_ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot %nul% && (
set error=1
set showfix=1
-call :dk_color2 %Red% "Checking WinPE " %Blue% "[System is running in WinPE mode. Run in normal mode.]"
+call :dk_color2 %Red% "Checking WinPE " %Blue% "[WinPE mode found. Run in normal mode.]"
)
|
