Computing and Information Services
Texas A&M University
Computing and Information Services

» Home » Services » Hardware/Software » Microsoft Key Management Server » Configuring Microsoft Key Management Server (KMS)

Configuring Microsoft Key Management Server (KMS)

Windows can either have its KMS server set manually or set to look in the primary DNS suffix zone for the KMS Service Record. For machines joined to a Windows domain, the KMS Service Record is the easiest method to use. For machines not joined to a domain, the "Primary DNS Suffix" needs to be set to a DNS zone that has the KMS Service Record, or the KMS needs to be set manually. These instructions apply to Windows Vista, Windows 7, and Server 2008.  Instructions for Office 2010 are separate from those for operating systems.

Creating a SRV record in an Active Directory DNS zone

  1. Open the DNS MMC.
  2. Expand the DNS Zone.
  3. Right-click on the _tcp folder and select Other New Records...
  4. Select Service Location (SRV) as the new record type.
  5. Fill in the following information for the new records:
    • Service: _VLMCS (This is not in the drop-down list and must be typed.)
    • Protocol: _tcp
    • Port: 1688
    • Host offering the service: kms.tamu.edu

Manually setting the KMS for Operating Systems

In the near future a program will be created to do this task. Until then please follow the steps below:

  1. Open a command prompt with Administrative Privileges. (From the Start menu, choose All Programs and select Accessories. From there right-click on Command Prompt and select "Run as Administrator".)
  2. Change to the "c:\windows\system32" directory.
  3. Run the following command to set the KMS Server: "cscript slmgr.vbs -skms kms.tamu.edu".
  4. Run the following command to activate against the newly set KMS: "cscript slmgr.vbs -ato".

Manually setting the KMS for Microsoft Office 2010 and Office 2013

  1. Open a command prompt with Administrative Privileges.  (From the Start menu, choose All Programs and select Accessories. From there right-click on Command Prompt and select "Run as Administrator".)
  2. Office 2010: Go to the "c:\Program Files (x86)\Microsoft Office\Office14" for x86 or the "c:\Program Files\Microsoft Office\Office14" for x64 Office Product.
    Office 2013: Go to the "c:\Program Files (x86)\Microsoft Office\Office15" for x86 or the "c:\Program Files\Microsoft Office\Office15" for x64 Office Product.
  3. Run the following command to set the KMS Server: "cscript ospp.vbs /sethst:kms.tamu.edu"
  4. Run the following command to active against the newly set KMS: "cscript ospp.vbs /act"