Microsoft Key Management Server (KMS) Details (2024)

KMS Introduction

The Microsoft Key Management Server (KMS) is part of the Microsoft Volume Activation 2.0 solution managing Windows OS activation keys and performs activation for supported clients automatically. Starting with Windows Server 2008 & Windows Vista, Microsoft switched to an online activation system where every Windows OS requires activation. KMS shifts the activation requirement to a single machine which is activated with a special KMS Host (server) key. Every KMS supported Windows version automatically communicates with the KMS server to activate Windows and manage the activation key (configuring the Windows OS with a KMS key forces it to find a KMS Host and get activation from it).
KMS supported clients include Windows Server 2008, Windows Server 2008 R2, Windows Vista, & Windows 7.

The KMS client discovers the KMS server by performing a DNS query for the KMS SRV record in DNS.

DNS: Standard query SRV _vlmcs._tcp.adsecurity.org
DNS: standard query response SRV 0 100 1688 kms.adsecurity.org (addr 10.10.10.11)

The DNS query response includes the KMS server hostname and port number (1688).
The KMS client then initializes a connection to port 1688 on the KMS server.

By default, a Windows installation’s license is configured with a grace period of 30 days plus 2 “rearms” (slmgr.vbs /rearm) for a total of 90 days to activate. Once activated by KMS, the KMS client communicates with the KMS server every 7 days to renew its activation as well as resetting the license counter to 0.

If the Windows license isn’t re-activated by a KMS server within 180 days (6 months), it shifts into a 30 day grace period after which it enters reduced functionality mode (retail only) or notification mode (where the user is notified regularly to re-activate) and continues to attempt a KMS connection every 2 hours until activated.

NOTE:

  • KMS doesn’t activate Windows workstations until at least 25 different Windows workstations have connected to KMS.
  • Also, KMS doesn’t activate Windows servers until at least 5 different Windows servers have connected to KMS.
  • Running slmgr.vbs /dli on the KMS Host provides the KMS activation count (a count of -1 means no clients have been activated).
  • Microsoft Office products are activated with a special KMS version & license key specific to Office.
  • Apparently the KMS Host in Windows 2008 prior to SP2 (and Windows 2008 R2) didn’t update the activated client count when activating virtual machines. Windows 2008 SP2 (and later) now updates the KMS count regardless of machine type, virtual or physical.

KMS Server Installation

Installing the KMS Host (Server) on a machine is simply a product key that gets activated on the computer which initializes the Software Protection Service to listen on port 1688 for license activation requests. A multi-purpose enterprise server is the best candidate for KMS Host since the service is relatively lightweight. I don’t recommend configuring a Domain Controller as the KMS Server since a DC should only be providing Active Directory services (and DNS in most cases). This mitigates additional impact should a DC be taken down or reinstalled. The KMS Server can be installed on the same server as the DFS root name server and can also be virtualized (which may be ideal since High Availability can be easily enabled using VMWare HA).

A single KMS Server can handle the load of a large enterprise and it is not likely necessary to install a second (or more) KMS Server. Many organizations choose to install 2 KMS Hosts to ensure license activations continue with the loss of a single server. However, going through the KMS Host activation process on an isolated network (not directly connected to the internet) is a time-consuming process. For this reason, it is recommended to use a server for KMS that can be easily restored from backup without affecting other services (this way the KMS Host key is restored on the same hardware).

Installing a KMS sever on the network is relatively straight forward.

  1. Identify a server on the network and install the appropriate KMS key by running slmgr.vbs /ipk <KmsKey> a Windows 2008 R2 server.
  2. Activate the KMS key on the KMS host by running slmgr.vbs /ato to activate online or run slui.exe 4 to activate by phone (for networks not connected to the internet).
  3. Restart the Software Protection Service by running restart-service sppsvc in an elevated PowerShell console (or net stop sppsvc && net start sppsvc if PowerShell is unavailable).
  4. Run slmgr.vbs /dli to get the KMS activated client count.

KMS Host installation performs a dynamic DNS update for a new SRV record (_VLMCS._TCP ) on port 1688. If the DNS server does not support dynamic DNS, the SRV record has to be manually created.

KMS SRV record:

Service: _VLMCS
Protocol: _tcp
Port: 1688
Priority: 10 (default is 0)
Weight: 0 (default is 0)
Host offering the service: kms.adsecurity.org.
(enter FQDN with trailing “.”)

NOTE:
When configuring a second KMS server on the network, it is necessary to manually create the 2nd KMS SRV record in DNS. This is due to the original KMS sever owning the KMS SRV record that it dynamically created in DNS. Since the original KMS server owns the KMS SRV record, no other computer can update it. This is also why when replacing a KMS server, the new KMS server can’t update the existing KMS SRV DNS record.

KMS automatic DNS publishing can be disabled by running Slmgr.vbs /cdns.

The KMS Server only creates a KMS SRV record for its domain (Primary DNS Suffix). In order to configure the KMS Server to publish its KMS SRV DNS record to multiple domains:

To automatically publish KMS in multiple DNS domains, add each DNS domain suffix to whichever KMS should publish to the multi-string registry value DnsDomainPublishList in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform. After changing the value, restart the Software Licensing Service to create the SRV RRs.

KMS Host Key Types

The KMS Host key is directly related to the highest level OS used on the network, and there is a different KMS key series for Windows 2008 versus Windows 2008 R2.

A KMS key is used to activate only the KMS host with a Microsoft activation server. A KMS key can activate up to six KMS hosts with 10 activations per host. Each host can activate an unlimited number of computers. If you need to activate more than six KMS hosts, contact your Volume Licensing Service Center (http://go.microsoft.com/fwlink/p/?LinkId=184280), and state why you must increase the activation limit.

Windows Server 2008 R2 Standard edition is currently the highest product being deployed in the product grouping hierarchy (with Windows Server 2008 being below it and unable to activate Windows 2008 R2 servers). The associated KMS key for that product is the Windows Server 2008R2 _____ KMS _ key (where _________ is the Server edition type and _ is “A”, “B”, or “C” ).

  • KMS C Key: Server Group C for Windows Server 2008 R2 (Editions: Datacenter & Itanium-based systems)
  • KMS B Key: Server Group B for Windows Server 2008 R2 (Editions: Standard & Enterprise)
  • KMS A Key: Server Group A for Windows Server 2008 R2 (Editions: Web Server & HPC Server)
  • Win 7 KMS Key: Client VL for Windows 7 (Editions: Professional & Enterprise)

The KMS license groups are configured so that a KMS key can activate all products in its group as well as all groups below it.

  • Server Group C can activate Groups C, B, A, and Client VL
  • Server Group B can activate Groups, B, A, and Client VL
  • Server Group A can activate Group A, and Client VL


KMS Client Configuration

On the client, run cscript slmgr.vbs –dlv to get the current Windows OS license status. By default, a KMS Client performs a DNS SRV query to locate a KMS server. If auto-discovery is disabled, run slmgr.vbs /ckms to re-enable. Activated clients need to communicate within 180 days (6 months) after which they enter a grace period.

Change a client’s activation key to a KMS client key by running slmgr.vbs /ipk <KmsSetupKey> and activate by running cscript slmgr.vbs /ato.

A DNS query for the SRV record identifies the KMS Server on a network:

nslookup -type=srv _vlmcs._tcp.adsecurity.org
(where adsecurity.org is the domain name)


KMS Client Setup Keys

Windows7
Windows 7 ProfessionalFJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Professional NMRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 Enterprise33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 Enterprise NYDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 Enterprise EC29WB-22CC8-VJ326-GHFJW-H9DH4
Windows Server2008R2
Windows Server 2008 R2 HPC EditionFKJQ8-TMCVP-FRMR7-4WR42-3JCD7
Windows Server 2008 R2 Datacenter74YFP-3QFB3-KQT8W-PMXWJ-7M648
Windows Server 2008 R2 Enterprise489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 for Itanium-Based SystemsGT63C-RJFQ3-4GMB6-BRFB9-CB83V
Windows Server 2008 R2 StandardYC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Web Server 2008 R26TPJF-RBVHG-WBW2R-86QPH-6RTM4

Slmgr.vbs Parameters

ParameterDescription
/sprt PortNumberSets the TCP communications port on a KMS host. Replace PortNumber with the TCP port number to use. The default setting is1688.
/cdnsDisables automatic DNS publishing by a KMS host.
/sdnsEnables automatic DNS publishing by the KMS host.
/cpriLowers the priority of KMS host processes.
/spriSets the priority of KMS host processes toNormal.
/sai ActivationIntervalChanges how often a KMS client attempts to activate itself when it cannot find a KMS host. Replace ActivationInterval with a number of minutes. The default setting is120.
/sri RenewalIntervalChanges how often a KMS client attempts to renew its activation by contacting a KMS host. Replace RenewalInterval with a number of minutes. The default setting is10080(7days). This setting overrides the local KMS client settings.
/dliRetrieves the current KMS activation count from the KMS host

Slmgr.vbs can be rum against a remote computer by using these additional parameters (omit username and password to use current credentials):

slmgr.vbs TargetComputerName [username] [password] /parameter [options]

KMS Part 2


References:

(Visited 38,138 times, 1 visits today)

Microsoft Key Management Server (KMS) Details (2024)

FAQs

Microsoft Key Management Server (KMS) Details? ›

KMS uses a client-server model to active clients and is used for volume activation. KMS clients connect to a KMS server, called the KMS host, for activation. The KMS host must reside on your local network. KMS hosts don't need to be dedicated servers, and KMS can be cohosted with other services.

How to check the KMS server details? ›

Use Command-Line Tools, Open a Command Prompt window with administrative privileges. Run the command slmgr /dlv (for Windows) or ospp. vbs /dstatus (for Office). This command will show special licensing facts, which includes the KMS server in case your gadget is activated the usage of KMS.

What is Microsoft KMS server? ›

KMS (Key Management Service) is one of the methods to activate Microsoft Windows and Microsoft Office. Activation ensures that the software is obtained from and licensed by Microsoft. KMS is used by volume license customers, usually medium to large businesses, schools, and non-profits.

What is a KMS key in Microsoft? ›

Key Management Service (KMS) allows organizations to activate systems within their own network. Multiple Activation Key (MAK) activates systems on a one-time basis, using Microsoft hosted activation services.

How to set up key management service KMS? ›

How To Activate Windows with Key Management Services
  1. Step 1: Open the “Administrative Command Prompt” Launching the command prompt. ...
  2. Step 2: Install the “KMS” Key. ...
  3. Step 3: Verify the Activation. ...
  4. Step 2: Set Up a KMS Host Server. ...
  5. Step 3: Configure the KMS Host. ...
  6. Step 4: Activate Office Clients. ...
  7. Step 5: Verify Activation.
Jan 11, 2024

How do you check what KMS keys are installed? ›

In the AWS Management Console, you can view lists of your KMS keys in the account and Region and details about each KMS key.

How do I check my KMS key policy? ›

You can view the key policy for an AWS KMS customer managed key or an AWS managed key in your account by using the AWS Management Console or the GetKeyPolicy operation in the AWS KMS API.

How to find KMS host key? ›

To get the KMS key, sign in to the Volume Licensing Service Center (VLSC) and download the KMS key for each product and version of Office that you want KMS to activate.

Is KMS server legal? ›

Activation servers (KMS) through an organization or educational institution is legal, and should be used for those intents and purposes.

What is KMS used for? ›

AWS Key Management Service (KMS) gives you centralized control over the cryptographic keys used to protect your data.

How do I know where my KMS key is used? ›

If you have created a CloudTrail trail in the region where your KMS key is located, you can examine your CloudTrail log files to view a history of all AWS KMS API activity for a particular KMS key.

Who has access to KMS keys? ›

KMS keys belong to the AWS account in which they were created. However, no identity or principal, including the AWS account root user, has permission to use or manage a KMS key unless that permission is explicitly provided in a key policy, IAM policy or grant.

Where can I find KMS key? ›

To view the keys in your account that AWS creates and manages for you, in the navigation pane, choose AWS managed keys. To find the key ID for a KMS key, see the row that begins with the KMS key alias. The Key ID column appears in the tables by default.

How long does a key management service KMS activation last? ›

KMS activations are valid for 180 days, a period known as the activation validity interval. KMS clients must renew their activation by connecting to the KMS host at least once every 180 days to stay activated. By default, KMS client computers attempt to renew their activation every seven days.

How to check which KMS server is being used? ›

Check the Software Licensing service using the slmgr. vbs command
  1. The Version Information is at the top of the slmgr. ...
  2. The Name indicates which edition of Windows is running on the KMS host system. ...
  3. The Description shows you which key is currently installed. ...
  4. The License Status shows the status of the KMS host system.
Sep 19, 2023

How to activate Windows through KMS server? ›

Activate a Windows Operating System (All Supported Versions)

In the elevated Command Prompt window, verify that the current directory is C:\Windows\System32. If it is not, type CD \Windows\System32 and press Enter. Type the following command: cscript slmgr. vbs /skms kms01.cit.cornell.edu and press Enter.

How do I check my KMS settings? ›

If your MMS messages fail to download on an Android, it could be because the Auto-download MMS setting is incorrect. In the Messages app, tap the 3-dots menu in the top-right corner, and go to Settings > Advanced > Auto-download MMS. If the option is on, try turning it off and manually downloading your MMS message.

What is the command for KMS server? ›

To activate KMS on a client version of Windows, follow these steps:
  • Open an elevated Command Prompt window.
  • In the elevated Command Prompt window, run the following command to install the KMS key: cscript.exe slmgr.vbs /ipk <KMS_Key>
Mar 29, 2024

How to find kms server in registry? ›

The primary method of discovery is to search for a registry value “KeyManagementServiceListeningPort” in the following registry key: “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform” If your KMS is not getting discovered – you can add that registry value. The default is REG_SZ with “1688”

How to tell if a KMS host is working? ›

Check the Software Licensing service using the slmgr. vbs command
  1. The Version Information is at the top of the slmgr. ...
  2. The Name indicates which edition of Windows is running on the KMS host system. ...
  3. The Description shows you which key is currently installed. ...
  4. The License Status shows the status of the KMS host system.
Sep 19, 2023

Top Articles
10 fun facts about money
International Money transfer comparison | Compare best exchange rates - Wise
Kevin Cox Picks
122242843 Routing Number BANK OF THE WEST CA - Wise
Jeremy Corbell Twitter
Craigslist Furniture Bedroom Set
Www Craigslist Louisville
Achivr Visb Verizon
Hover Racer Drive Watchdocumentaries
Midlife Crisis F95Zone
10-Day Weather Forecast for Florence, AL - The Weather Channel | weather.com
Les Rainwater Auto Sales
Destiny 2 Salvage Activity (How to Complete, Rewards & Mission)
Committees Of Correspondence | Encyclopedia.com
Salem Oregon Costco Gas Prices
Transfer and Pay with Wells Fargo Online®
Invert Clipping Mask Illustrator
Honda cb750 cbx z1 Kawasaki kz900 h2 kz 900 Harley Davidson BMW Indian - wanted - by dealer - sale - craigslist
3S Bivy Cover 2D Gen
Craigslist Sparta Nj
Ivegore Machete Mutolation
All Obituaries | Gateway-Forest Lawn Funeral Home | Lake City FL funeral home and cremation Lake City FL funeral home and cremation
8005607994
Low Tide In Twilight Ch 52
Essence Healthcare Otc 2023 Catalog
Apparent assassination attempt | Suspect never had Trump in sight, did not get off shot: Officials
Marquette Gas Prices
Telegram Voyeur
Ascensionpress Com Login
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Landing Page Winn Dixie
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Max 80 Orl
A Small Traveling Suitcase Figgerits
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Lichen - 1.17.0 - Gemsbok! Antler Windchimes! Shoji Screens!
Pill 44615 Orange
Spinning Gold Showtimes Near Emagine Birch Run
Sams La Habra Gas Price
Michael Jordan: A timeline of the NBA legend
Does Target Have Slime Lickers
Noh Buddy
M&T Bank
Sea Guini Dress Code
Dancing Bear - House Party! ID ? Brunette in hardcore action
18 Seriously Good Camping Meals (healthy, easy, minimal prep! )
Quest Diagnostics Mt Morris Appointment
Pelican Denville Nj
Deshuesadero El Pulpo
Wwba Baseball
Optimal Perks Rs3
Dinargurus
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6432

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.