diff options
| author | WindowsAddict | 2024-08-14 03:16:43 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-08-14 03:16:43 +0000 |
| commit | 69430c6458c5a644a6dad74840555625c5d66674 (patch) | |
| tree | 8197f9afbdc31694a27fd4818057a40751584c4d /MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd | |
| parent | 9f57f585d508c3118bb967a8bcc6263b191d1d04 (diff) | |
| download | Microsoft-Activation-Scripts-69430c6458c5a644a6dad74840555625c5d66674.zip | |
Don't create renewal task if VL IDs not found or OEMBIOS error is present and Office VL IDs not found
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index 222c0e7..db1fafd 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -807,9 +807,25 @@ call :_taskregserv call :_taskact
if not defined showfix if defined _tserror (call :dk_color %Blue% "%_fixmsg%" & set showfix=1)
-if %_norentsk%==0 (
+:: Don't create renewal task if Windows/Office volume IDs are not found, even if script is set to create it by default
+:: Don't create renewal task if only Windows volume ID is found and OEM BIOS error is present on Windows 7, even if script is set to create it by default
+
+set _deltask=
+if not %_norentsk%==0 set _deltask=1
+if not defined _deltask (
+if %_actwin%==0 call :_taskgetids sppwid %slp% windows
+if %_actoff%==0 call :_taskgetids sppoid %slp% office
+if %_actoff%==0 call :_taskgetids osppid %ospp% office
+)
+
+if not defined sppwid if not defined sppoid if not defined osppid (set _deltask=1)
+if defined oemerr if not defined sppoid if not defined osppid (set _deltask=1)
+
+if not defined _deltask (
call :ks_renewal
) else (
+if %_norentsk%==0 if exist "%ProgramFiles%\Activation-Renewal\Activation_task.cmd" call :dk_color %Gray% "Deleting activation renewal task..."
+if %_norentsk%==0 call :dk_color %Gray% "Skipping to create activation renewal task..."
call :ks_clearstuff %nul%
if not defined _server (
if %winbuild% GEQ 9200 (
@@ -1704,6 +1720,7 @@ call :dk_color %Red% "%prodname% cannot be KMS-activated on this computer due to set fixes=%fixes% %mas%unsupported_products_activation
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%unsupported_products_activation"
)
+set oemerr=1
set showfix=1
exit /b
)
|
