A knowledge base article about Using the Microsoft Key Management Server (KMS) to activate Windows provided by the UC Berkeley IT Service Hub - Knowledge Portal
The bIT KMS service will activate the following operating systems:
To register and activate with the KMS service, simply run the following script at an elevated (Administrator context) command prompt:
cscript c:\windows\system32\slmgr.vbs /ipk YFKBB-PQJJV-G996G-VWGXY-2V3X8
cscript c:\windows\system32\slmgr.vbs -skms kms.ist.berkeley.edu:1688
cscript c:\windows\system32\slmgr.vbs -ato
cscript c:\windows\system32\slmgr.vbs /ipk VKK3X-68KWM-X2YGT-QR4M6-4BWMV
cscript c:\windows\system32\slmgr.vbs -skms kms.ist.berkeley.edu:1688
cscript c:\windows\system32\slmgr.vbs -ato
cscript c:\windows\system32\slmgr.vbs /ipk 4HC37-P8BYP-9KFVM-BP9X3-3HGHK
cscript c:\windows\system32\slmgr.vbs -skms kms.ist.berkeley.edu:1688
cscript c:\windows\system32\slmgr.vbs -ato
cscript c:\windows\system32\slmgr.vbs /ipk 4HC37-P8BYP-9KFVM-BP9X3-3HGHK
cscript c:\windows\system32\slmgr.vbs -skms kms.ist.berkeley.edu:1688
cscript c:\windows\system32\slmgr.vbs -ato
From an elevated CMD prompt
CD "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /act
If you cannot find the file "ospp.vbs" in the directory listed above it may be located at:
C:\Program Files\Microsoft Office\Office16.
If the .vbs file is not in either of the directories listed above you can search your drive for it.
Make sure it is Office16 and not previous installs.
You should see a response which looks like the following.
<Product activation successful>
The result is based on the current or previous installations of Office
and there may be some errors listed but you are looking for the confirmation message.
A reboot will be necessary in order to complete the activation.
The KMS service will not be used to enforce licensing compliance. This service is merely to ease the administrative burden of KMS. bIT assumes that any campus unit using the KMS service will already own a license for the version of Windows being activated.