diff options
| author | WindowsAddict <[email protected]> | 2025-06-03 16:44:13 +0530 |
|---|---|---|
| committer | WindowsAddict <[email protected]> | 2025-06-03 16:44:13 +0530 |
| commit | 482600c890468cc1f818633ed0787589398a57a7 (patch) | |
| tree | 7d9ce0437185c71e0f5a3e4e8e327f78b03aab0a /MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd | |
| parent | dc90e1ff0fbf3d3a5dc47d3c54afb265a304e689 (diff) | |
| download | Microsoft-Activation-Scripts-482600c890468cc1f818633ed0787589398a57a7.zip | |
Show info related to expired Office preview products
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index 27e539a..670cc67 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -876,6 +876,7 @@ set error=1 goto :ks_starto16c2r
)
+call :oh_expiredpreview 2013
if "%_actprojvis%"=="0" call :oh_fixprids
call :ks_process
@@ -916,6 +917,7 @@ set error=1 goto :ks_startmsi
)
+call :oh_expiredpreview 2016 2019 2021 2024
if "%_actprojvis%"=="0" call :oh_fixprids
call :ks_process
@@ -1096,6 +1098,21 @@ 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.
:oh_fixprids
|
