From LedHed's Wiki
Jump to: navigation, search

General Notes

Key Management Server allows you to handle Volume License activations for its various products.


Windows OS

A newly installed KMS server will not activate clients until there are 25 or more unique activation requests. If your KMS server has received fewer requests, the clients will get the following error 0xC004F038 more info can be found in the following article: KMS Activation Error

slmgr.vbs

slmgr /ato  -  Activate
slmgr /dli  -  Display information about the active KMS Host license
slmgr /dli all  -  Display information about all KMS Host licenses
slmgr /dlv
slmgr /upk  -  Uninstall the KMS Host Key (thus deactivating KMS services)
slmgr /ipk:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx  -  Change Product Key

Office

ospp.vbs

Typically located in:

C:\Program Files\Microsoft Office\<OfficeVersion>\

or

C:\Program Files (x86)\Microsoft Office\<OfficeVersion>\

Where <OfficeVersion> is:

  • Office14 - Office 2010
  • Office15 - Office 2013
  • Office16 - Office 2016
cscript ospp.vbs /act  -  Activate
cscript ospp.vbs /sethst:<YourKMSFQDN>  -  Manually set the KMS hostname

Where <YourKMSFQDN> is the fully qualified domain name of your KMS server, something like kms.yourdomain.com

cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx - Change Product Key

Where xxxxx-xxxxx-xxxxx-xxxxx-xxxxx is the product key.

cscript ospp.vbs /dcmid  -  Show the current installation ID

ospprearm.exe

This utility will re-arm the office installation ID (CMID)
Typically located in:

C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform\

or

C:\Program Files (x86)\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform\


References

https://technet.microsoft.com/en-us/library/ff793434.aspx