mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-06-06 18:30:58 +00:00
Compare commits
No commits in common. "master" and "3.3" have entirely different histories.
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -1,4 +1,4 @@
|
|||||||
# MAS export-ignore
|
MAS export-ignore
|
||||||
# LICENSE export-ignore
|
LICENSE export-ignore
|
||||||
# README.md export-ignore
|
README.md export-ignore
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@::yfh37fow-random
|
@::fh36d7f-random
|
||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@setlocal DisableDelayedExpansion
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
@ -2423,7 +2423,6 @@ set error=1
|
|||||||
goto :starto16c2r
|
goto :starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
call :oh_fixprids
|
call :oh_fixprids
|
||||||
call :oh_process
|
call :oh_process
|
||||||
if defined isOspp (
|
if defined isOspp (
|
||||||
@ -2481,7 +2480,6 @@ set error=1
|
|||||||
goto :startmsi
|
goto :startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
call :oh_fixprids
|
call :oh_fixprids
|
||||||
call :oh_process
|
call :oh_process
|
||||||
if defined isOspp (
|
if defined isOspp (
|
||||||
@ -2741,21 +2739,6 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:oh_expiredpreview
|
|
||||||
|
|
||||||
for %%# in (%*) do (
|
|
||||||
if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" (
|
|
||||||
set error=1
|
|
||||||
set showfix=1
|
|
||||||
call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]"
|
|
||||||
call :dk_color %Blue% "Please run the Office updates first, and then attempt to activate it again."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
exit /b
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
|
||||||
|
|
||||||
:oh_ppcpath
|
:oh_ppcpath
|
||||||
|
|
||||||
if not defined isOspp (
|
if not defined isOspp (
|
||||||
@ -4114,8 +4097,6 @@ if !_el!==1 cls & setlocal & set "_actwin=1" & call :ts_start & endlocal
|
|||||||
goto :ts_menu
|
goto :ts_menu
|
||||||
)
|
)
|
||||||
|
|
||||||
goto :ts_start
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:ts_changemethod
|
:ts_changemethod
|
||||||
@ -4128,26 +4109,25 @@ echo:
|
|||||||
echo:
|
echo:
|
||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
echo:
|
echo:
|
||||||
call :dk_color2 %_White% " [1] " %_Green% "Auto"
|
call :dk_color2 %_White% " [1] " %_Green% " Auto"
|
||||||
echo Builds ^>= 19041 - StaticCID (KMS4k if offline)
|
echo Build 19041 and later:
|
||||||
echo Builds ^< 19041 - ZeroCID
|
echo Uses StaticCID, or KMS4k if offline.
|
||||||
echo __________________________________________________
|
echo Older builds: Uses ZeroCID.
|
||||||
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [2] StaticCID
|
echo [2] StaticCID
|
||||||
echo Needs Internet
|
echo Needs Internet.
|
||||||
echo Not for Windows 7 or older
|
echo Not for Windows 7 or older.
|
||||||
echo __________________________________________________
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [3] ZeroCID
|
echo [3] ZeroCID
|
||||||
echo Works reliably on builds below 19041
|
echo Works only on builds below 19041.
|
||||||
echo May break on builds between 19041-26100
|
echo _______________________________________________
|
||||||
echo Does not work on builds above 26100.4188
|
|
||||||
echo __________________________________________________
|
|
||||||
echo:
|
echo:
|
||||||
echo [4] KMS4k
|
echo [4] KMS4k
|
||||||
echo Volume licenses only
|
echo This applies only to volume products.
|
||||||
echo Activates for 4000+ years
|
echo Activates for 4000+ years using KMS.
|
||||||
echo __________________________________________________
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [5] Learn More
|
echo [5] Learn More
|
||||||
echo [0] %_exitmsg%
|
echo [0] %_exitmsg%
|
||||||
@ -4997,7 +4977,6 @@ set error=1
|
|||||||
goto :ts_starto16c2r
|
goto :ts_starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ts_process
|
call :ts_process
|
||||||
|
|
||||||
@ -5039,7 +5018,6 @@ set error=1
|
|||||||
goto :ts_startmsi
|
goto :ts_startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ts_process
|
call :ts_process
|
||||||
|
|
||||||
@ -12985,7 +12963,6 @@ set error=1
|
|||||||
goto :ks_starto16c2r
|
goto :ks_starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ks_process
|
call :ks_process
|
||||||
|
|
||||||
@ -13026,7 +13003,6 @@ set error=1
|
|||||||
goto :ks_startmsi
|
goto :ks_startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ks_process
|
call :ks_process
|
||||||
|
|
||||||
@ -13939,8 +13915,8 @@ set srvlist=
|
|||||||
set -=
|
set -=
|
||||||
|
|
||||||
set "srvlist=kms.03%-%k.org kms-default.cangs%-%hui.net kms.six%-%yin.com kms.moe%-%club.org kms.cgt%-%soft.com"
|
set "srvlist=kms.03%-%k.org kms-default.cangs%-%hui.net kms.six%-%yin.com kms.moe%-%club.org kms.cgt%-%soft.com"
|
||||||
set "srvlist=%srvlist% kms.id%-%ina.cn kms.moe%-%yuuko.com xinch%-%eng213618.cn kms.lol%-%i.best kms.mc%-%06.net"
|
set "srvlist=%srvlist% kms.id%-%ina.cn kms.moe%-%yuuko.com xinch%-%eng213618.cn kms.lol%-%i.best kms.my%-%ds.cloud"
|
||||||
set "srvlist=%srvlist% kms.0%-%t.net.cn win.k%-%ms.pub kms.wx%-%lost.com kms.moe%-%yuuko.top kms.gh%-%xi.com"
|
set "srvlist=%srvlist% kms.0%-%t.net.cn win.k%-%ms.pub kms.wx%-%lost.com kms.moe%-%yuuko.top kms.gh%-%pym.com"
|
||||||
|
|
||||||
set n=1
|
set n=1
|
||||||
for %%a in (%srvlist%) do (set %%a=&set server!n!=%%a&set /a n+=1)
|
for %%a in (%srvlist%) do (set %%a=&set server!n!=%%a&set /a n+=1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -614,7 +614,6 @@ set error=1
|
|||||||
goto :starto16c2r
|
goto :starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
call :oh_fixprids
|
call :oh_fixprids
|
||||||
call :oh_process
|
call :oh_process
|
||||||
if defined isOspp (
|
if defined isOspp (
|
||||||
@ -672,7 +671,6 @@ set error=1
|
|||||||
goto :startmsi
|
goto :startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
call :oh_fixprids
|
call :oh_fixprids
|
||||||
call :oh_process
|
call :oh_process
|
||||||
if defined isOspp (
|
if defined isOspp (
|
||||||
@ -932,21 +930,6 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:oh_expiredpreview
|
|
||||||
|
|
||||||
for %%# in (%*) do (
|
|
||||||
if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" (
|
|
||||||
set error=1
|
|
||||||
set showfix=1
|
|
||||||
call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]"
|
|
||||||
call :dk_color %Blue% "Please run the Office updates first, and then attempt to activate it again."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
exit /b
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
|
||||||
|
|
||||||
:oh_ppcpath
|
:oh_ppcpath
|
||||||
|
|
||||||
if not defined isOspp (
|
if not defined isOspp (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -876,7 +876,6 @@ set error=1
|
|||||||
goto :ks_starto16c2r
|
goto :ks_starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ks_process
|
call :ks_process
|
||||||
|
|
||||||
@ -917,7 +916,6 @@ set error=1
|
|||||||
goto :ks_startmsi
|
goto :ks_startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ks_process
|
call :ks_process
|
||||||
|
|
||||||
@ -1098,21 +1096,6 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:oh_expiredpreview
|
|
||||||
|
|
||||||
for %%# in (%*) do (
|
|
||||||
if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" (
|
|
||||||
set error=1
|
|
||||||
set showfix=1
|
|
||||||
call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]"
|
|
||||||
call :dk_color %Blue% "Please run the Office updates first, and then attempt to activate it again."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
exit /b
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
|
||||||
|
|
||||||
:: Some Office Retail to Volume converter tools may edit the ProductReleaseIds to add VL products. This code restores it because it may affect features.
|
:: Some Office Retail to Volume converter tools may edit the ProductReleaseIds to add VL products. This code restores it because it may affect features.
|
||||||
|
|
||||||
:oh_fixprids
|
:oh_fixprids
|
||||||
@ -2154,8 +2137,8 @@ set srvlist=
|
|||||||
set -=
|
set -=
|
||||||
|
|
||||||
set "srvlist=kms.03%-%k.org kms-default.cangs%-%hui.net kms.six%-%yin.com kms.moe%-%club.org kms.cgt%-%soft.com"
|
set "srvlist=kms.03%-%k.org kms-default.cangs%-%hui.net kms.six%-%yin.com kms.moe%-%club.org kms.cgt%-%soft.com"
|
||||||
set "srvlist=%srvlist% kms.id%-%ina.cn kms.moe%-%yuuko.com xinch%-%eng213618.cn kms.lol%-%i.best kms.mc%-%06.net"
|
set "srvlist=%srvlist% kms.id%-%ina.cn kms.moe%-%yuuko.com xinch%-%eng213618.cn kms.lol%-%i.best kms.my%-%ds.cloud"
|
||||||
set "srvlist=%srvlist% kms.0%-%t.net.cn win.k%-%ms.pub kms.wx%-%lost.com kms.moe%-%yuuko.top kms.gh%-%xi.com"
|
set "srvlist=%srvlist% kms.0%-%t.net.cn win.k%-%ms.pub kms.wx%-%lost.com kms.moe%-%yuuko.top kms.gh%-%pym.com"
|
||||||
|
|
||||||
set n=1
|
set n=1
|
||||||
for %%a in (%srvlist%) do (set %%a=&set server!n!=%%a&set /a n+=1)
|
for %%a in (%srvlist%) do (set %%a=&set server!n!=%%a&set /a n+=1)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -497,8 +497,6 @@ if !_el!==1 cls & setlocal & set "_actwin=1" & call :ts_start & endlocal
|
|||||||
goto :ts_menu
|
goto :ts_menu
|
||||||
)
|
)
|
||||||
|
|
||||||
goto :ts_start
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:ts_changemethod
|
:ts_changemethod
|
||||||
@ -511,26 +509,25 @@ echo:
|
|||||||
echo:
|
echo:
|
||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
echo:
|
echo:
|
||||||
call :dk_color2 %_White% " [1] " %_Green% "Auto"
|
call :dk_color2 %_White% " [1] " %_Green% " Auto"
|
||||||
echo Builds ^>= 19041 - StaticCID (KMS4k if offline)
|
echo Build 19041 and later:
|
||||||
echo Builds ^< 19041 - ZeroCID
|
echo Uses StaticCID, or KMS4k if offline.
|
||||||
echo __________________________________________________
|
echo Older builds: Uses ZeroCID.
|
||||||
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [2] StaticCID
|
echo [2] StaticCID
|
||||||
echo Needs Internet
|
echo Needs Internet.
|
||||||
echo Not for Windows 7 or older
|
echo Not for Windows 7 or older.
|
||||||
echo __________________________________________________
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [3] ZeroCID
|
echo [3] ZeroCID
|
||||||
echo Works reliably on builds below 19041
|
echo Works only on builds below 19041.
|
||||||
echo May break on builds between 19041-26100
|
echo _______________________________________________
|
||||||
echo Does not work on builds above 26100.4188
|
|
||||||
echo __________________________________________________
|
|
||||||
echo:
|
echo:
|
||||||
echo [4] KMS4k
|
echo [4] KMS4k
|
||||||
echo Volume licenses only
|
echo This applies only to volume products.
|
||||||
echo Activates for 4000+ years
|
echo Activates for 4000+ years using KMS.
|
||||||
echo __________________________________________________
|
echo _______________________________________________
|
||||||
echo:
|
echo:
|
||||||
echo [5] Learn More
|
echo [5] Learn More
|
||||||
echo [0] %_exitmsg%
|
echo [0] %_exitmsg%
|
||||||
@ -1380,7 +1377,6 @@ set error=1
|
|||||||
goto :ts_starto16c2r
|
goto :ts_starto16c2r
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2013
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ts_process
|
call :ts_process
|
||||||
|
|
||||||
@ -1422,7 +1418,6 @@ set error=1
|
|||||||
goto :ts_startmsi
|
goto :ts_startmsi
|
||||||
)
|
)
|
||||||
|
|
||||||
call :oh_expiredpreview 2016 2019 2021 2024
|
|
||||||
if "%_actprojvis%"=="0" call :oh_fixprids
|
if "%_actprojvis%"=="0" call :oh_fixprids
|
||||||
call :ts_process
|
call :ts_process
|
||||||
|
|
||||||
@ -2004,21 +1999,6 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:oh_expiredpreview
|
|
||||||
|
|
||||||
for %%# in (%*) do (
|
|
||||||
if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" (
|
|
||||||
set error=1
|
|
||||||
set showfix=1
|
|
||||||
call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]"
|
|
||||||
call :dk_color %Blue% "Please run the Office updates first, and then attempt to activate it again."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
exit /b
|
|
||||||
|
|
||||||
::========================================================================================================================================
|
|
||||||
|
|
||||||
:: Some Office Retail to Volume converter tools may edit the ProductReleaseIds to add VL products. This code restores it because it may affect features.
|
:: Some Office Retail to Volume converter tools may edit the ProductReleaseIds to add VL products. This code restores it because it may affect features.
|
||||||
|
|
||||||
:oh_fixprids
|
:oh_fixprids
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=3.4
|
@set masver=3.3
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user