If there is one thing I can count on in this thread its that almost every day when I check it I can count on a new version/build of KMS-QADhooker. All though I must says its getting harder and harder to keep my ISO's updated. None-The-Less I do appreciate your hard work. Thanks for your work xinso ~MC
Hi xinso my pal, you've been fast ... but not fast enough . Interesting challenge . If i got this right you want to determine permanently activated systems to skip the KMS activation for them . Unfortunately it can't be done your way. Alternative: Dertermine the License Channel of Windows/Server with LicenseStatus = 1 and then IF an EVAL: echo message and skip and IF NOT VOLUME_KMSCLIENT echo message and skip. Otherwise script proceeds . something like this: Code: set slp=SoftwareLicensingProduct for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G if %win% GEQ 9200 (set "tok=6") else (set "tok=9") for /f "tokens=%tok% delims==,() " %%G in ('"wmic path %slp% where LicenseStatus='1' get Description /format:list"') do set channel=%%G if %channel% EQU EVAL (echo.&echo Detected Windows is an EVALUATION version.&exit /b) if not %channel% EQU VOLUME_KMSCLIENT (echo.&echo Detected Windows is permanently activated.&exit /b)
Hmm ... that way unfortunately even an activated Volume version will get the 'permanently activated' message .
No. Because Qewlpal has pre-defined detected channel must be "KMSCLIENT" before go to :sppchkWindows. And this is why it cannot convert and activate Retail Office. How about this? Code: :sppchkWindows echo. for /f "tokens=4 delims= " %%A in ('"wmic path SoftwareLicensingProduct where (Name like '%%%winname%%%' and LicenseStatus='1') get Description /format:list"') do (set channel=%%A) if %channel% EQU TIMEBASED_EVAL (echo Detected %winname% is an Evaluation version.&exit /b) if %channel% NEQ VOLUME_KMSCLIENT (echo Detected %winname% is permanently activated.&exit /b) call :insKey %1 exit /b :sppchkOffice15 echo. for /f "tokens=3 delims= " %%A in ('"wmic path SoftwareLicensingProduct where (Name like '%%Office%%' and LicenseStatus='1') get Description /format:list"') do (set channel=%%A) for /f "tokens=3 delims= " %%A in ('"wmic path SoftwareLicensingProduct where (Name like '%%Office%%' and LicenseStatus='1') get Name /format:list"') do (set o15name=%%A) if %channel% EQU TIMEBASED_EVAL (echo Detected %o15name% is an Evaluation version.&exit /b) if %channel% NEQ VOLUME_KMSCLIENT (echo Detected %o15name% is permanently activated.&exit /b) call :insKey %1 exit /b Code: Detected ServerDatacenter is permanently activated. Detected OfficeProPlusVL_MAK is permanently activated. No Installed Office 2010 Product Detected... (The above display is from the PC I am posting, REAL.) Slave77, I am not familiar with Office 2010. If this works, maybe we can apply it to Office 2010 as well.
Works same way as Office 2013 by using 'OfficeSoftwareProtectionProduct' instead of SoftwareLicensingProduct . Test: Code: C:\Windows\System32>for /f "tokens=3 delims= " %A in ('"wmic path OfficeSoftware ProtectionProduct where (Name like '%%Office%%' and LicenseStatus='1') get Descr iption /format:list"') do (set channel=%A) C:\Windows\System32>(set channel=VOLUME_KMSCLIENT ) EDIT:================== In case you support Win 7 it would be better to use '%%Office 14%%' as on Win 7 Office 2013 is also using 'OfficeSoftwareProtectionProduct' .
Xinso, my dear, not sure, why you didn't post your question here .... : This thread has lot more audience than the one you posted it originally . In case you don't want me to do this, ring the bell and i will purge it . Regards
Goto:eof GOTO:EOF :EOF FixMe (for things which are definitely broken, but where you want not to worry about it for the moment) ToDo (for useful features, optimizations or re-workings that might be worth doing in the future) NeverDone (the future tense of "ToDo". Most "ToDo" items mutate over time into a "NeverDone" item, requiring no special love or attention to help them do so) ForgetIt (for the things that require more thought and that are arguably broken) Echo "... and I hope that your (xinso) illuminated views will eventually win, or gain the upper hand, later." Exit ("just a testament of the sincerity, interest and innocence of our time, thank you.")