

To configure KMS host caching, you can use the ospp.vbs script. If the KMS host computer is cached, the KMS client won't query DNS and instead will attempt to contact the cached KMS host computer that last resulted in successful activation.

This means that the priority and weight parameters set for KMS host computers will be honored. If the KMS host computer is not cached, the KMS client will query DNS every time that activation is attempted. You can configure whether or not the last used KMS host computer is saved to the cache on the KMS client. For more information about the ospp.vbs script, see Tools to manage volume activation of Office. These registry keys can also be set by using ospp.vbs script.

The KMS host computer name is specified by KeyManagementServiceName (REG_SZ), and the port is specified by KeyManagementServicePort (REG_SZ). If the network environment does not use SRV RRs, you can manually assign a KMS client to use a specific KMS host computer by configuring the HKEY_LOCAL_MACHINE\Software\Microsoft\OfficeSoftwareProtectionPlatform registry key on the KMS client. For more information, see How DNS is used to find a KMS host computer. KMS clients can locate a KMS host computer automatically by querying DNS for service (SRV) resource records (RRs) that publish the KMS service. You don't have to do anything else to enable activation of Office by KMS. This is because the KMS host computer requires at least five requests before it begins activating clients. Office is activated the first time it runs, provided that there have been at least four previous activation requests to the KMS host computer.

If the KMS host computer is available and properly configured, activation of Office occurs transparently to the user. On the KMS host computer configured to support volume activation of Office, you install and enable only one KMS host key to activate all volume licensed versions of Office. GVLKs support both Key Management Service (KMS) and Active Directory-based activation. Applies to: Volume licensed versions of Office LTSC 2021, Office 2019, and Office 2016 (including Project and Visio)Īll volume licensed versions of Office, including Project and Visio, have a Generic Volume License Key (GVLK) preinstalled.
