Activating Office 2019 Retail/KMS

In this example we are using Office 2019 Professional Plus in the retails channel and we need to adapt it to run the KMS version which is activated by a enterprise KMS server.

Start Command prompt elevated

This is simple, from the start menu search for command prompt right click and choose "Run as Administrator" as below:



Ensure you command prompt is in the right content as below:


Navigate to the directory

Then you need to navigate to the correct directory using this command:

cd "c:\Program Files (x86)\Microsoft Office\Office16"

That should then put you in that directory as below:


Convert license from Retail to Volume 

for /f %x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"

Activate license on the internet with Microsoft.

Remember to change the <host_ip> with the IP address to your KMS server with a valid MAK key.

cscript ospp.vbs /setprt:1688
cscript ospp.vbs /unpkey:6MWKP >nul
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
cscript ospp.vbs /sethst:<host_ip>
cscript ospp.vbs /act

Using your own KMS server

If you are using your own KMS server internally then you can replace the IP here with the IP address of your KMS server for local activation.

cscript ospp.vbs /sethst:10.77.11.44

That should end with the activation being successful as below:


Converting from Retail to KMS

If you wish to convert from Retail to KMS (as you found out that you now do indeed have a KMS server) then you can run this script which is a CMD format that needs to be run as an administrator

Note:  If you are using the x86 verions of Office then update the %ProgramFiles% to %ProgramFiles(x32)

Script : Office2019Retail-KMS.cmd

@echo off

set LICPATH=%ProgramFiles%\Microsoft Office\root\Licenses16
set LICPATH1=%ProgramFiles%\Microsoft Office\Office16

cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ppd.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ul.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ul-oob.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-bridge-office.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-root.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-root-bridge-test.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-stil.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-ul.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-ul-oob.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\pkeyconfig-office.xrm-ms"
cscript slmgr.vbs /ipk XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99

cscript "%LICPATH1%\ospp.vbs" /sethst:<kms_server_hostname>
cscript "%LICPATH1%\ospp.vbs" /act

This will then convert the licenses and activate using the KMS initial key (which yes requires a KMS server) if you do not have a KMS server then it needs to be in retail mode.
Previous Post Next Post

نموذج الاتصال