SET"RegKey=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages"
@ -357,13 +357,14 @@ FOR /F "TOKENS=3 DELIMS=: " %%A IN ('DISM /English /Online /Get-CurrentEdition %
FOR/F"TOKENS=2 DELIMS=="%%A IN('"WMIC PATH SoftwareLicensingProduct WHERE (Name LIKE 'Windows%%' AND PartialProductKey is not NULL) GET LicenseFamily /VALUE" %_Nul6%')DOIFNOTERRORLEVEL1SET"EditionWMI=%%A"
wmic path %spp% where (Description like '%%KMSCLIENT%%') get Name %_Nul2%| findstr /i Windows %_Nul1%&&(setWinVL=1)||(echo.&echoNo Supported KMS Client Windows Detected...)
wmic path %spp% where (Description like '%%KMSCLIENT%%') get Name %_Nul2%| findstr /i Windows %_Nul1%&&(setWinVL=1)||(echo.&echoWindows %EditionID% edition do not support KMS activation...)
if%loc_offgl%EQU 0 (echo.&echo No Installed Office 2013/2016/2019 Product Detected...)
if%loc_offgl%EQU 1 (echo.&echo Detected Office 2013/2016/2019 do not support KMS activation...&echo Retail Products need to be converted to Volume first.)
)
exit /b
@ -528,7 +528,7 @@ set spp=OfficeSoftwareProtectionProduct
if%OsppHook%EQU 0 (echo.&echo No Installed Office %aword% Product Detected...&exit /b)
wmic path %spp% where (Description like '%%KMSCLIENT%%') get Name /VALUE %_Nul3%||(echo.&echoNo Supported KMS Client Office %aword% Product Detected...&exit /b)
wmic path %spp% where (Description like '%%KMSCLIENT%%') get Name /VALUE %_Nul3%||(echo.&echoDetected Office %aword% do not support KMS activation...&echo Retail Products need to be converted to Volume first.&exit /b)