cd "C:\Program Files (x86)\Microsoft Office\Office16" cscript ospp.vbs /dstatus This shows installed product keys and the last 5 characters of the installed key. 4. Install the KMS Client Key Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your actual Office 2019 KMS key .
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP Replace kms.yourdomain.com:1688 with your organization’s KMS server.