Activate Office 2019 via command line

This can be added to MDT, a start-up script or Group Policy for auto activation of Office 2019.

cscript “C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS” /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
TIMEOUT /T 60
cscript “C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS” /act

If you found this article helpful, would you consider buying me a Coffee?