cscript ospp.vbs /sethst:kms.yourdomain.com
This method uses the ospp.vbs script located inside Office’s installation folder. Here’s the typical workflow: activar office 2016 via cmd
cd /d %ProgramFiles%\Microsoft Office\Office16 cscript ospp
Tools to manage volume activation of Office - Microsoft Learn Microsoft kept the folder name)
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Office16 corresponds to Office 2016. For Office 2013 it’s Office15 , for 2019 it’s Office16 as well (yes, Microsoft kept the folder name), and for Office 2021/365 it’s often Office16 too, but commands may differ slightly.