mirror of
				https://github.com/massgravel/Microsoft-Activation-Scripts.git
				synced 2025-11-04 09:03:25 +08:00 
			
		
		
		
	3.0
This commit is contained in:
		
							parent
							
								
									8f3f392517
								
							
						
					
					
						commit
						60c99742ce
					
				
							
								
								
									
										6
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
# MAS export-ignore
 | 
			
		||||
# LICENSE export-ignore
 | 
			
		||||
# README.md export-ignore
 | 
			
		||||
MAS export-ignore
 | 
			
		||||
LICENSE export-ignore
 | 
			
		||||
README.md export-ignore
 | 
			
		||||
.gitattributes export-ignore
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -161,19 +161,29 @@ for %%A in (%_act% %_NoEditionChange%) do (if "%%A"=="1" set _unattended=1)
 | 
			
		||||
 | 
			
		||||
call :dk_setvar
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 10240 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
echo HWID Activation is only supported on Windows 10/11.
 | 
			
		||||
echo:
 | 
			
		||||
call :dk_color %Blue% "Use Online KMS activation option."
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum" (
 | 
			
		||||
%eline%
 | 
			
		||||
echo HWID Activation is not supported on Windows Server.
 | 
			
		||||
call :dk_color %Blue% "Use KMS38 or Online KMS activation option."
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -294,9 +304,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -312,7 +326,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -380,7 +394,8 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2
 | 
			
		||||
%eline%
 | 
			
		||||
echo [%winos% ^| %winbuild%]
 | 
			
		||||
echo:
 | 
			
		||||
echo Evaluation editions cannot be activated outside of their evaluation period. 
 | 
			
		||||
echo Evaluation editions cannot be activated outside of their evaluation period.
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
 | 
			
		||||
echo:
 | 
			
		||||
set fixes=%fixes% %mas%evaluation_editions
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%evaluation_editions"
 | 
			
		||||
@ -464,7 +479,7 @@ echo [%winos% ^| %winbuild% ^| SKU:%osSKU%]
 | 
			
		||||
if not defined skunotfound (
 | 
			
		||||
echo This product does not support HWID activation.
 | 
			
		||||
echo Make sure you are using the latest version of the script.
 | 
			
		||||
echo If you are, then try KMS38 activation option.
 | 
			
		||||
echo If you are, then try TSforge activation option from the main menu.
 | 
			
		||||
set fixes=%fixes% %mas%
 | 
			
		||||
echo %mas%
 | 
			
		||||
) else (
 | 
			
		||||
@ -725,7 +740,7 @@ call :dk_color %Green% "%winos% is permanently activated with a digital license.
 | 
			
		||||
call :dk_color %Red% "Activation Failed %error_code%"
 | 
			
		||||
if defined notworking (
 | 
			
		||||
call :dk_color %Blue% "At the time of writing, HWID Activation is not supported for this product."
 | 
			
		||||
call :dk_color %Blue% "Use KMS38 activation option instead."
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu instead."
 | 
			
		||||
) else (
 | 
			
		||||
if not defined error call :dk_color %Blue% "%_fixmsg%"
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -167,15 +167,25 @@ set _k38=
 | 
			
		||||
call :dk_setvar
 | 
			
		||||
set "specific_kms=SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f"
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 14393 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
echo KMS38 activation is only supported on Windows 10/11/Server, build 14393 and later.
 | 
			
		||||
echo:
 | 
			
		||||
if %winbuild% LSS 10240 (
 | 
			
		||||
call :dk_color %Blue% "Use Online KMS activation option."
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
) else (
 | 
			
		||||
call :dk_color %Blue% "Use HWID activation option."
 | 
			
		||||
call :dk_color %Blue% "Use HWID activation option from the main menu."
 | 
			
		||||
)
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
@ -297,9 +307,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -315,7 +329,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
cls
 | 
			
		||||
@ -431,7 +445,8 @@ echo Server Evaluation cannot be activated. Convert it to full Server OS.
 | 
			
		||||
echo:
 | 
			
		||||
call :dk_color %Blue% "Go Back to main menu and use [Change Edition] option."
 | 
			
		||||
) else (
 | 
			
		||||
echo Evaluation editions cannot be activated outside of their evaluation period. 
 | 
			
		||||
echo Evaluation editions cannot be activated outside of their evaluation period.
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
 | 
			
		||||
echo:
 | 
			
		||||
set fixes=%fixes% %mas%evaluation_editions
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%evaluation_editions"
 | 
			
		||||
@ -541,7 +556,7 @@ call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
 | 
			
		||||
if not defined skunotfound if not defined sppks (
 | 
			
		||||
call :dk_color %Red% "This product does not support KMS38 activation."
 | 
			
		||||
call :dk_color %Blue% "Make sure you are using the latest version of the script."
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
set fixes=%fixes% %mas%
 | 
			
		||||
echo %mas%
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -161,6 +161,16 @@ for %%A in (%_act% %_rem%) do (if "%%A"=="1" set _unattended=1)
 | 
			
		||||
 | 
			
		||||
call :dk_setvar
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 9200 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -287,9 +297,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -305,7 +319,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
cls
 | 
			
		||||
@ -520,11 +534,11 @@ echo "!_oIds!" | find /i " %%a " %nul1% || (set "_oIds= !_oIds! %%a ")
 | 
			
		||||
set "_oLPath=%_oRoot%\Licenses"
 | 
			
		||||
set "_oIntegrator=%_oRoot%\integration\integrator.exe"
 | 
			
		||||
 | 
			
		||||
if "%_oArch%"=="x64" (set "_hookPath=%_oRoot%\vfs\System"    & set "_hook=sppc64.dll")
 | 
			
		||||
if "%_oArch%"=="x86" (set "_hookPath=%_oRoot%\vfs\SystemX86" & set "_hook=sppc32.dll")
 | 
			
		||||
if /i "%_oArch%"=="x64" (set "_hookPath=%_oRoot%\vfs\System"    & set "_hook=sppc64.dll")
 | 
			
		||||
if /i "%_oArch%"=="x86" (set "_hookPath=%_oRoot%\vfs\SystemX86" & set "_hook=sppc32.dll")
 | 
			
		||||
if not "%osarch%"=="x86" (
 | 
			
		||||
if "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
) else (
 | 
			
		||||
set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
)
 | 
			
		||||
@ -570,11 +584,11 @@ set _o16c2rIds=%_oIds%
 | 
			
		||||
set "_oLPath=%_oRoot%\Licenses16"
 | 
			
		||||
set "_oIntegrator=%_oRoot%\integration\integrator.exe"
 | 
			
		||||
 | 
			
		||||
if "%_oArch%"=="x64" (set "_hookPath=%_oRoot%\vfs\System"    & set "_hook=sppc64.dll")
 | 
			
		||||
if "%_oArch%"=="x86" (set "_hookPath=%_oRoot%\vfs\SystemX86" & set "_hook=sppc32.dll")
 | 
			
		||||
if /i "%_oArch%"=="x64" (set "_hookPath=%_oRoot%\vfs\System"    & set "_hook=sppc64.dll")
 | 
			
		||||
if /i "%_oArch%"=="x86" (set "_hookPath=%_oRoot%\vfs\SystemX86" & set "_hook=sppc32.dll")
 | 
			
		||||
if not "%osarch%"=="x86" (
 | 
			
		||||
if "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
) else (
 | 
			
		||||
set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
)
 | 
			
		||||
@ -1020,11 +1034,11 @@ echo "%2" | find /i "Wow6432Node" %nul1% && set _oArch=x86
 | 
			
		||||
if not "%osarch%"=="x86" if not defined _oArch set _oArch=x64
 | 
			
		||||
if "%osarch%"=="x86" set _oArch=x86
 | 
			
		||||
 | 
			
		||||
if "%_oArch%"=="x64" (set "_hookPath=%_oRoot%" & set "_hook=sppc64.dll")
 | 
			
		||||
if "%_oArch%"=="x86" (set "_hookPath=%_oRoot%" & set "_hook=sppc32.dll")
 | 
			
		||||
if /i "%_oArch%"=="x64" (set "_hookPath=%_oRoot%" & set "_hook=sppc64.dll")
 | 
			
		||||
if /i "%_oArch%"=="x86" (set "_hookPath=%_oRoot%" & set "_hook=sppc32.dll")
 | 
			
		||||
if not "%osarch%"=="x86" (
 | 
			
		||||
if "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x64" set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
if /i "%_oArch%"=="x86" set "_sppcPath=%SystemRoot%\SysWOW64\sppc.dll"
 | 
			
		||||
) else (
 | 
			
		||||
set "_sppcPath=%SystemRoot%\System32\sppc.dll"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -192,6 +192,16 @@ for %%A in (%_actwin% %_actoff% %_actprojvis% %_actwinoff% %_uni%) do (if "%%A"=
 | 
			
		||||
 | 
			
		||||
call :dk_setvar
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 7600 (
 | 
			
		||||
%nceline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -316,9 +326,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -334,7 +348,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -520,6 +534,7 @@ call :dk_color %Red% "Checking Evaluation Edition             [Evaluation editio
 | 
			
		||||
if defined _evalserv (
 | 
			
		||||
call :dk_color %Blue% "Go back to main menu and use [Change Edition] option."
 | 
			
		||||
) else (
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
 | 
			
		||||
set fixes=%fixes% %mas%evaluation_editions
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%evaluation_editions"
 | 
			
		||||
)
 | 
			
		||||
@ -582,10 +597,7 @@ call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
 | 
			
		||||
if not defined skunotfound if not defined sppks (
 | 
			
		||||
call :dk_color %Red% "This product does not support %KS% activation."
 | 
			
		||||
if %winbuild% LSS 9200 (
 | 
			
		||||
call :dk_color2 %Blue% "Use the alternative activator listed here - " %_Yellow% " %mas%unsupported_products_activation"
 | 
			
		||||
)
 | 
			
		||||
set fixes=%fixes% %mas%unsupported_products_activation
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
)
 | 
			
		||||
echo:
 | 
			
		||||
goto :ks_office
 | 
			
		||||
@ -1828,8 +1840,7 @@ if defined t_name (
 | 
			
		||||
echo %prodname% cannot be KMS-activated on this computer due to unqualified OEM BIOS [0xC004F035].
 | 
			
		||||
) else (
 | 
			
		||||
call :dk_color %Red% "%prodname% cannot be KMS-activated on this computer due to unqualified OEM BIOS [0xC004F035]."
 | 
			
		||||
set fixes=%fixes% %mas%unsupported_products_activation
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%unsupported_products_activation"
 | 
			
		||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
 | 
			
		||||
)
 | 
			
		||||
set oemerr=1
 | 
			
		||||
set showfix=1
 | 
			
		||||
 | 
			
		||||
@ -1,12 +0,0 @@
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
Activation Type        Supported Product        Activation Period
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
HWID                -  Windows 10-11         -  Permanent                           
 | 
			
		||||
Ohook               -  Office                -  Permanent                           
 | 
			
		||||
KMS38               -  Windows 10-11-Server  -  Till the Year 2038                  
 | 
			
		||||
Online KMS          -  Windows / Office      -  180 Days. Lifetime With Renewal Task
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
For more details, use the respective docs section here https://massgrave.dev/
 | 
			
		||||
							
								
								
									
										7408
									
								
								MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7408
									
								
								MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										13
									
								
								MAS/Separate-Files-Version/Activators/_ReadMe.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								MAS/Separate-Files-Version/Activators/_ReadMe.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
Activation Type        Supported Product        Activation Period
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
HWID                -  Windows 10-11          -  Permanent                           
 | 
			
		||||
Ohook               -  Office                 -  Permanent                           
 | 
			
		||||
TSforge             -  Windows / ESU / Office -  Permanent                           
 | 
			
		||||
KMS38               -  Windows 10-11-Server   -  Till the Year 2038                  
 | 
			
		||||
Online KMS          -  Windows / Office       -  180 Days. Lifetime With Renewal Task
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
For more details, check https://massgrave.dev/activations_comparison
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -123,6 +123,16 @@ set "line=echo _________________________________________________________________
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 7600 (
 | 
			
		||||
%nceline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -247,9 +257,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -265,7 +279,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -128,6 +128,16 @@ set "line=echo _________________________________________________________________
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 7600 (
 | 
			
		||||
%nceline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -252,9 +262,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -270,7 +284,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -122,6 +122,16 @@ call :dk_setvar
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 7600 (
 | 
			
		||||
%nceline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -246,9 +256,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -264,7 +278,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -305,6 +319,7 @@ set HWID_Activation.cmd=Activators\HWID_Activation.cmd
 | 
			
		||||
set KMS38_Activation.cmd=Activators\KMS38_Activation.cmd
 | 
			
		||||
set Online_KMS_Activation.cmd=Activators\Online_KMS_Activation.cmd
 | 
			
		||||
set Ohook_Activation_AIO.cmd=Activators\Ohook_Activation_AIO.cmd
 | 
			
		||||
set TSforge_Activation.cmd=Activators\TSforge_Activation.cmd
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
 | 
			
		||||
set _nofile=
 | 
			
		||||
@ -313,6 +328,7 @@ for %%# in (
 | 
			
		||||
%KMS38_Activation.cmd%
 | 
			
		||||
%Online_KMS_Activation.cmd%
 | 
			
		||||
%Ohook_Activation_AIO.cmd%
 | 
			
		||||
%TSforge_Activation.cmd%
 | 
			
		||||
) do (
 | 
			
		||||
if not exist "%%#" set _nofile=1
 | 
			
		||||
)
 | 
			
		||||
@ -338,36 +354,34 @@ echo:
 | 
			
		||||
echo:
 | 
			
		||||
echo:
 | 
			
		||||
echo:                     Extract $OEM$ folder on the desktop           
 | 
			
		||||
echo:           ________________________________________________________
 | 
			
		||||
echo:         ____________________________________________________________
 | 
			
		||||
echo:
 | 
			
		||||
echo:              [1] HWID
 | 
			
		||||
echo:              [2] Ohook
 | 
			
		||||
echo:              [3] KMS38
 | 
			
		||||
echo:              [4] Online KMS
 | 
			
		||||
echo:            [1] HWID             [Windows]
 | 
			
		||||
echo:            [2] Ohook            [Office]
 | 
			
		||||
echo:            [3] TSforge          [Windows / ESU / Office]
 | 
			
		||||
echo:            [4] KMS38            [Windows]
 | 
			
		||||
echo:            [5] Online KMS       [Windows / Office]
 | 
			
		||||
echo:
 | 
			
		||||
echo:              [5] HWID       ^(Windows^) ^+ Ohook      ^(Office^)
 | 
			
		||||
echo:              [6] HWID       ^(Windows^) ^+ Online KMS ^(Office^)
 | 
			
		||||
echo:              [7] KMS38      ^(Windows^) ^+ Ohook      ^(Office^)
 | 
			
		||||
echo:              [8] KMS38      ^(Windows^) ^+ Online KMS ^(Office^)
 | 
			
		||||
echo:              [9] Online KMS ^(Windows^) ^+ Ohook      ^(Office^)
 | 
			
		||||
echo:            [6] HWID    [Windows] ^+ Ohook [Office]
 | 
			
		||||
echo:            [7] HWID    [Windows] ^+ Ohook [Office] ^+ TSforge [ESU]
 | 
			
		||||
echo:            [8] TSforge [Windows] ^+ Online KMS [Office]
 | 
			
		||||
echo:
 | 
			
		||||
call :dk_color2 %_White% "              [R] " %_Green% "ReadMe"
 | 
			
		||||
echo:              [0] Exit
 | 
			
		||||
echo:           ________________________________________________________
 | 
			
		||||
call :dk_color2 %_White% "            [R] " %_Green% "ReadMe"
 | 
			
		||||
echo:            [0] Exit
 | 
			
		||||
echo:         ____________________________________________________________
 | 
			
		||||
echo:  
 | 
			
		||||
call :dk_color2 %_White% "             " %_Green% "Choose a menu option using your keyboard :"
 | 
			
		||||
choice /C:123456789R0 /N
 | 
			
		||||
choice /C:12345678R0 /N
 | 
			
		||||
set _erl=%errorlevel%
 | 
			
		||||
 | 
			
		||||
if %_erl%==11 exit /b
 | 
			
		||||
if %_erl%==10 start %mas%oem-folder &goto :Menu
 | 
			
		||||
if %_erl%==9 goto:kms_ohook
 | 
			
		||||
if %_erl%==8 goto:kms38_kms
 | 
			
		||||
if %_erl%==7 goto:kms38_ohook
 | 
			
		||||
if %_erl%==6 goto:hwid_kms
 | 
			
		||||
if %_erl%==5 goto:hwid_ohook
 | 
			
		||||
if %_erl%==4 goto:kms
 | 
			
		||||
if %_erl%==3 goto:kms38
 | 
			
		||||
if %_erl%==10 exit /b
 | 
			
		||||
if %_erl%==9 start %mas%oem-folder &goto :Menu
 | 
			
		||||
if %_erl%==8 goto:tsforge_kms
 | 
			
		||||
if %_erl%==7 goto:hwid_ohook_tsforge
 | 
			
		||||
if %_erl%==6 goto:hwid_ohook
 | 
			
		||||
if %_erl%==5 goto:kms
 | 
			
		||||
if %_erl%==4 goto:kms38
 | 
			
		||||
if %_erl%==3 goto:tsforge
 | 
			
		||||
if %_erl%==2 goto:ohook
 | 
			
		||||
if %_erl%==1 goto:hwid
 | 
			
		||||
goto :Menu
 | 
			
		||||
@ -434,6 +448,36 @@ cd \
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:tsforge
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
md "!desktop!\$OEM$\$$\Setup\Scripts"
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
copy /y /b "%TSforge_Activation.cmd%" "!_dir!\TSforge_Activation.cmd" %nul%
 | 
			
		||||
popd
 | 
			
		||||
call :export tsforge_setup
 | 
			
		||||
 | 
			
		||||
set _error=
 | 
			
		||||
if not exist "!_dir!\TSforge_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\SetupComplete.cmd" set _error=1
 | 
			
		||||
if defined _error goto errorfound
 | 
			
		||||
 | 
			
		||||
set oem=TSforge
 | 
			
		||||
goto done
 | 
			
		||||
 | 
			
		||||
:tsforge_setup:
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
fltmc >nul || exit /b
 | 
			
		||||
 | 
			
		||||
call "%~dp0TSforge_Activation.cmd" /Z-WindowsESUOffice
 | 
			
		||||
 | 
			
		||||
cd \
 | 
			
		||||
(goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
 | 
			
		||||
:tsforge_setup:
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:kms38
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
@ -532,26 +576,28 @@ cd \
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:hwid_kms
 | 
			
		||||
:hwid_ohook_tsforge
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
md "!desktop!\$OEM$\$$\Setup\Scripts"
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
copy /y /b "%HWID_Activation.cmd%" "!_dir!\HWID_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%Online_KMS_Activation.cmd%" "!_dir!\Online_KMS_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%Ohook_Activation_AIO.cmd%" "!_dir!\Ohook_Activation_AIO.cmd" %nul%
 | 
			
		||||
copy /y /b "%TSforge_Activation.cmd%" "!_dir!\TSforge_Activation.cmd" %nul%
 | 
			
		||||
popd
 | 
			
		||||
call :export hwid_kms_setup
 | 
			
		||||
call :export hwid_ohook_tsforge_setup
 | 
			
		||||
 | 
			
		||||
set _error=
 | 
			
		||||
if not exist "!_dir!\HWID_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\Online_KMS_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\Ohook_Activation_AIO.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\TSforge_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\SetupComplete.cmd" set _error=1
 | 
			
		||||
if defined _error goto errorfound
 | 
			
		||||
 | 
			
		||||
set oem=HWID [Windows] + Online KMS [Office]
 | 
			
		||||
set oem=HWID [Windows] + Ohook [Office] + TSforge [ESU]
 | 
			
		||||
goto done
 | 
			
		||||
 | 
			
		||||
:hwid_kms_setup:
 | 
			
		||||
:hwid_ohook_tsforge_setup:
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
fltmc >nul || exit /b
 | 
			
		||||
@ -560,80 +606,46 @@ setlocal
 | 
			
		||||
call "%~dp0HWID_Activation.cmd" /HWID
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0Online_KMS_Activation.cmd" /K-Office
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
cd \
 | 
			
		||||
(goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
 | 
			
		||||
:hwid_kms_setup:
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:kms38_ohook
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
md "!desktop!\$OEM$\$$\Setup\Scripts"
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
copy /y /b "%KMS38_Activation.cmd%" "!_dir!\KMS38_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%Ohook_Activation_AIO.cmd%" "!_dir!\Ohook_Activation_AIO.cmd" %nul%
 | 
			
		||||
popd
 | 
			
		||||
call :export kms38_ohook_setup
 | 
			
		||||
 | 
			
		||||
set _error=
 | 
			
		||||
if not exist "!_dir!\KMS38_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\Ohook_Activation_AIO.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\SetupComplete.cmd" set _error=1
 | 
			
		||||
if defined _error goto errorfound
 | 
			
		||||
 | 
			
		||||
set oem=KMS38 [Windows] + Ohook [Office]
 | 
			
		||||
goto done
 | 
			
		||||
 | 
			
		||||
:kms38_ohook_setup:
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
fltmc >nul || exit /b
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0KMS38_Activation.cmd" /KMS38
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0Ohook_Activation_AIO.cmd" /Ohook
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0TSforge_Activation.cmd" /Z-ESU
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
cd \
 | 
			
		||||
(goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
 | 
			
		||||
:kms38_ohook_setup:
 | 
			
		||||
:hwid_ohook_tsforge_setup:
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:kms38_kms
 | 
			
		||||
:tsforge_kms
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
md "!desktop!\$OEM$\$$\Setup\Scripts"
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
copy /y /b "%KMS38_Activation.cmd%" "!_dir!\KMS38_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%TSforge_Activation.cmd%" "!_dir!\TSforge_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%Online_KMS_Activation.cmd%" "!_dir!\Online_KMS_Activation.cmd" %nul%
 | 
			
		||||
popd
 | 
			
		||||
call :export kms38_kms_setup
 | 
			
		||||
call :export tsforge_kms_setup
 | 
			
		||||
 | 
			
		||||
set _error=
 | 
			
		||||
if not exist "!_dir!\KMS38_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\TSforge_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\Online_KMS_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\SetupComplete.cmd" set _error=1
 | 
			
		||||
if defined _error goto errorfound
 | 
			
		||||
 | 
			
		||||
set oem=KMS38 [Windows] + Online KMS [Office]
 | 
			
		||||
set oem=TSforge [Windows] + Online KMS [Office]
 | 
			
		||||
goto done
 | 
			
		||||
 | 
			
		||||
:kms38_kms_setup:
 | 
			
		||||
:tsforge_kms_setup:
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
fltmc >nul || exit /b
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0KMS38_Activation.cmd" /KMS38
 | 
			
		||||
call "%~dp0TSforge_Activation.cmd" /Z-Windows
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
@ -642,45 +654,7 @@ endlocal
 | 
			
		||||
 | 
			
		||||
cd \
 | 
			
		||||
(goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
 | 
			
		||||
:kms38_kms_setup:
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
:kms_ohook
 | 
			
		||||
 | 
			
		||||
cls
 | 
			
		||||
md "!desktop!\$OEM$\$$\Setup\Scripts"
 | 
			
		||||
pushd "!_work!"
 | 
			
		||||
copy /y /b "%Online_KMS_Activation.cmd%" "!_dir!\Online_KMS_Activation.cmd" %nul%
 | 
			
		||||
copy /y /b "%Ohook_Activation_AIO.cmd%" "!_dir!\Ohook_Activation_AIO.cmd" %nul%
 | 
			
		||||
popd
 | 
			
		||||
call :export kms_ohook_setup
 | 
			
		||||
 | 
			
		||||
set _error=
 | 
			
		||||
if not exist "!_dir!\Online_KMS_Activation.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\Ohook_Activation_AIO.cmd" set _error=1
 | 
			
		||||
if not exist "!_dir!\SetupComplete.cmd" set _error=1
 | 
			
		||||
if defined _error goto errorfound
 | 
			
		||||
 | 
			
		||||
set oem=Online KMS [Windows] + Ohook [Office]
 | 
			
		||||
goto done
 | 
			
		||||
 | 
			
		||||
:kms_ohook_setup:
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
fltmc >nul || exit /b
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0Online_KMS_Activation.cmd" /K-Windows
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
setlocal
 | 
			
		||||
call "%~dp0Ohook_Activation_AIO.cmd" /Ohook
 | 
			
		||||
endlocal
 | 
			
		||||
 | 
			
		||||
cd \
 | 
			
		||||
(goto) 2>nul & (if "%~dp0"=="%SystemRoot%\Setup\Scripts\" rd /s /q "%~dp0")
 | 
			
		||||
:kms_ohook_setup:
 | 
			
		||||
:tsforge_kms_setup:
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
@ -698,7 +672,7 @@ call :dk_color %Blue% "%oem%"
 | 
			
		||||
call :dk_color %Green% "$OEM$ folder was successfully created on your Desktop."
 | 
			
		||||
echo "%oem%" | find /i "38" %nul% && (
 | 
			
		||||
echo:
 | 
			
		||||
echo To KMS38 activate Server Cor/Acor editions ^(No GUI Versions^),
 | 
			
		||||
echo To KMS38 activate Server Cor/Acor editions [No GUI Versions],
 | 
			
		||||
echo Check this page %mas%oem-folder
 | 
			
		||||
)
 | 
			
		||||
echo ______________________________________________________________
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
@set masver=2.9
 | 
			
		||||
@set masver=3.0
 | 
			
		||||
@echo off
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -123,6 +123,16 @@ set "line=______________________________________________________________________
 | 
			
		||||
 | 
			
		||||
::========================================================================================================================================
 | 
			
		||||
 | 
			
		||||
if %winbuild% EQU 1 (
 | 
			
		||||
%eline%
 | 
			
		||||
echo Failed to detect Windows build number.
 | 
			
		||||
echo:
 | 
			
		||||
setlocal EnableDelayedExpansion
 | 
			
		||||
set fixes=%fixes% %mas%troubleshoot
 | 
			
		||||
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
 | 
			
		||||
goto dk_done
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if %winbuild% LSS 7600 (
 | 
			
		||||
%nceline%
 | 
			
		||||
echo Unsupported OS version detected [%winbuild%].
 | 
			
		||||
@ -247,9 +257,13 @@ set "d4=$k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080)
 | 
			
		||||
 | 
			
		||||
set -=
 | 
			
		||||
set old=
 | 
			
		||||
set upver=%masver:.=%
 | 
			
		||||
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
 | 
			
		||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=1
 | 
			
		||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck%upver%.activ%-%ated.win') do (
 | 
			
		||||
if not "%%#"=="" set old=
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if defined old (
 | 
			
		||||
@ -265,7 +279,7 @@ echo:
 | 
			
		||||
call :dk_color %_Green% "Choose a menu option using your 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)
 | 
			
		||||
if !errorlevel!==1 (start %mas% & exit /b)
 | 
			
		||||
)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										27
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								README.md
									
									
									
									
									
								
							@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
<h1 align="center">Microsoft  Activation  Scripts (MAS)</h1>
 | 
			
		||||
 | 
			
		||||
<p align="center">Open-source Windows and Office activator featuring HWID, Ohook, KMS38, and Online KMS activation methods, along with advanced troubleshooting.</p>
 | 
			
		||||
<p align="center">Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting.</p>
 | 
			
		||||
 | 
			
		||||
<hr>
 | 
			
		||||
  
 | 
			
		||||
@ -15,19 +15,12 @@
 | 
			
		||||
```
 | 
			
		||||
irm https://get.activated.win | iex
 | 
			
		||||
```
 | 
			
		||||
3.   You will see the activation options. Choose (1) HWID for Windows activation. Choose (2) Ohook for Office activation.
 | 
			
		||||
4.   That's all.
 | 
			
		||||
 | 
			
		||||
<details>
 | 
			
		||||
  <summary>More options</summary>
 | 
			
		||||
 | 
			
		||||
- Alternatively, you can use the following (It will be deprecated in the future.)
 | 
			
		||||
Alternatively, you can use the following (It will be deprecated in the future.)  
 | 
			
		||||
```
 | 
			
		||||
irm https://massgrave.dev/get | iex
 | 
			
		||||
```
 | 
			
		||||
- The URL `get.activated.win` might be blocked by some DNS services because it is a new domain.
 | 
			
		||||
 | 
			
		||||
</details>
 | 
			
		||||
3.   You will see the activation options. Choose (1) HWID for Windows activation. Choose (2) Ohook for Office activation.
 | 
			
		||||
4.   That's all.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
@ -50,6 +43,14 @@ or
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
### Not working ❓
 | 
			
		||||
 | 
			
		||||
- If you are **unable to launch MAS** using the PowerShell method, please refer to **Method 2** listed above.
 | 
			
		||||
- If MAS is launched and the script shows any errors, check for any troubleshooting steps mentioned in blue color and try to follow those.
 | 
			
		||||
- If you have any issues, please feel free to reach out to us [here](https://massgrave.dev/troubleshoot).
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
> [!NOTE]
 | 
			
		||||
>
 | 
			
		||||
> - The IRM command in PowerShell downloads a script from a specified URL, and the IEX command executes it.
 | 
			
		||||
@ -61,8 +62,8 @@ or
 | 
			
		||||
To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches).
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
Latest Version: 2.9
 | 
			
		||||
Release date: 20-Dec-2024
 | 
			
		||||
Latest Version: 3.0
 | 
			
		||||
Release date: 14-Feb-2025
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user