Skip to content

Commit

Permalink
2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsAddict committed Nov 15, 2023
1 parent 64e0067 commit 066b135
Show file tree
Hide file tree
Showing 12 changed files with 1,222 additions and 723 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MAS export-ignore
LICENSE export-ignore
README.md export-ignore
737 changes: 424 additions & 313 deletions MAS/All-In-One-Version/MAS_AIO.cmd

Large diffs are not rendered by default.

347 changes: 222 additions & 125 deletions MAS/Separate-Files-Version/Activators/HWID_Activation.cmd

Large diffs are not rendered by default.

350 changes: 228 additions & 122 deletions MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd

Large diffs are not rendered by default.

292 changes: 225 additions & 67 deletions MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@set masver=2.4
@set masver=2.5
@setlocal DisableDelayedExpansion
@echo off


::

::=================================================================================================
::
:: Online KMS Script is a fork of @abbodi1406's KMS_VL_ALL forums.mydigitallife.net/posts/838808
Expand Down Expand Up @@ -248,7 +248,7 @@ echo You are running outdated version MAS %masver%
echo ________________________________________________
echo:
if not defined _unattended (
echo [1] Download Latest MAS
echo [1] Get Latest MAS
echo [0] Continue Anyway
echo:
call :_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
Expand Down
57 changes: 34 additions & 23 deletions MAS/Separate-Files-Version/Change_Edition.cmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@set masver=2.4
@set masver=2.5
@setlocal DisableDelayedExpansion
@echo off


::

::============================================================================
::
:: This script is a part of 'Microsoft_Activation_Scripts' (MAS) project.
Expand Down Expand Up @@ -230,7 +230,7 @@ echo ________________________________________________
echo You are running outdated version MAS %masver%
echo ________________________________________________
echo:
echo [1] Download Latest MAS
echo [1] Get Latest MAS
echo [0] Continue Anyway
echo:
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
Expand Down Expand Up @@ -282,24 +282,7 @@ goto ced_done

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

:: Check SKU value

set osSKU=
set slcSKU=
set wmiSKU=

if %winbuild% GEQ 14393 (set info=Kernel-BrandingInfo) else (set info=Kernel-ProductInfo)
set d1=%ref% [void]$TypeBuilder.DefinePInvokeMethod('SLGetWindowsInformationDWORD', 'slc.dll', 'Public, Static', 1, [int], @([String], [int].MakeByRefType()), 1, 3);
set d1=%d1% $Sku = 0; [void]$TypeBuilder.CreateType()::SLGetWindowsInformationDWORD('%info%', [ref]$Sku); $Sku
for /f "delims=" %%s in ('"%psc% %d1%"') do if not errorlevel 1 (set slcSKU=%%s)
if "%slcSKU%"=="0" set slcSKU=
if 1%slcSKU% NEQ +1%slcSKU% set slcSKU=

if %_wmic% EQU 1 for /f "tokens=2 delims==" %%a in ('"wmic Path Win32_OperatingSystem Get OperatingSystemSKU /format:LIST" %nul6%') do if not errorlevel 1 set "wmiSKU=%%a"
if %_wmic% EQU 0 for /f "tokens=1" %%a in ('%psc% "([WMI]'Win32_OperatingSystem=@').OperatingSystemSKU" %nul6%') do if not errorlevel 1 set "wmiSKU=%%a"

set osSKU=%slcSKU%
if not defined osSKU set osSKU=%wmiSKU%
call :dk_checksku

if not defined osSKU (
%eline%
Expand All @@ -324,7 +307,7 @@ if not defined osedition (
for /f "skip=2 tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul6%') do set "osedition=%%a"
)

:: Workaround for a Windows bug in builds between 1607 and 1709 where ProfessionalEducation is shown as Professional
:: Workaround for an issue in builds between 1607 and 1709 where ProfessionalEducation is shown as Professional

if %osSKU%==164 set osedition=ProfessionalEducation
if %osSKU%==165 set osedition=ProfessionalEducationN
Expand Down Expand Up @@ -354,7 +337,10 @@ for /f "skip=2 tokens=2*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT

%psc% $ExecutionContext.SessionState.LanguageMode %nul2% | find /i "Full" %nul1% || (
%eline%
echo PowerShell is not responding properly. Aborting...
%psc% $ExecutionContext.SessionState.LanguageMode
echo:
echo PowerShell is not working. Aborting...
echo If you have applied restrictions on Powershell then undo those changes.
echo:
echo Check this page for help. %mas%troubleshoot
goto ced_done
Expand Down Expand Up @@ -654,6 +640,31 @@ exit /b

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

:: Check SKU value

:dk_checksku

set osSKU=
set slcSKU=
set wmiSKU=
set regSKU=

if %winbuild% GEQ 14393 (set info=Kernel-BrandingInfo) else (set info=Kernel-ProductInfo)
set d1=%ref% [void]$TypeBuilder.DefinePInvokeMethod('SLGetWindowsInformationDWORD', 'slc.dll', 'Public, Static', 1, [int], @([String], [int].MakeByRefType()), 1, 3);
set d1=%d1% $Sku = 0; [void]$TypeBuilder.CreateType()::SLGetWindowsInformationDWORD('%info%', [ref]$Sku); $Sku
for /f "delims=" %%s in ('"%psc% %d1%"') do if not errorlevel 1 (set slcSKU=%%s)
if "%slcSKU%"=="0" set slcSKU=
if 1%slcSKU% NEQ +1%slcSKU% set slcSKU=

for /f "tokens=3 delims=." %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions" /v OSProductPfn %nul6%') do set "regSKU=%%a"
if %_wmic% EQU 1 for /f "tokens=2 delims==" %%a in ('"wmic Path Win32_OperatingSystem Get OperatingSystemSKU /format:LIST" %nul6%') do if not errorlevel 1 set "wmiSKU=%%a"
if %_wmic% EQU 0 for /f "tokens=1" %%a in ('%psc% "([WMI]'Win32_OperatingSystem=@').OperatingSystemSKU" %nul6%') do if not errorlevel 1 set "wmiSKU=%%a"

set osSKU=%slcSKU%
if not defined osSKU set osSKU=%wmiSKU%
if not defined osSKU set osSKU=%regSKU%
exit /b

:: Refresh license status

:dk_refresh
Expand Down
2 changes: 1 addition & 1 deletion MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@



:: Check-Activation-Status
:: Check-Activation-Status-vbs.cmd
:: Written by @abbodi1406
:: forums.mydigitallife.net/posts/838808

Expand Down
1 change: 0 additions & 1 deletion MAS/Separate-Files-Version/Check-Activation-Status-wmi.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- : Begin batch script
@setlocal DisableDelayedExpansion
@echo off

Expand Down
6 changes: 3 additions & 3 deletions MAS/Separate-Files-Version/Extract_OEM_Folder.cmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@set masver=2.4
@set masver=2.5
@setlocal DisableDelayedExpansion
@echo off


::

::============================================================================
::
:: This script is a part of 'Microsoft_Activation_Scripts' (MAS) project.
Expand Down Expand Up @@ -222,7 +222,7 @@ echo ________________________________________________
echo You are running outdated version MAS %masver%
echo ________________________________________________
echo:
echo [1] Download Latest MAS
echo [1] Get Latest MAS
echo [0] Continue Anyway
echo:
call :ex_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
Expand Down

0 comments on commit 066b135

Please sign in to comment.