Own KMS server allows you to significantly simplify the process of activating Microsoft products on the corporate network and in contrast to a usual the activation process doesn’t require granting each computer an access to the Internet to Microsoft activation servers. KMS infrastructure is rather simple, reliable and easily scalable (a single KMS server can serve thousands of clients).
In this article, we describe how to install and activate the KMS server on Windows Server 2012 R2 on the local corporate network.
Installation and Configuration of the Volume Activation Services Role
KMS requires installation and configuration of a separate server role – Volume Activation Services. You can install this role using the Server Manage console or PowerShell:
Install-WindowsFeature -Name VolumeActivation -IncludeAllSubFeature
If you are going to install a role through the graphical interface of the Server Manager console, run the Add Roles and Features Wizard, and in the Server Roles selection step, select Volume Activation Services.
After the installation is complete, start Volume Activation Tools console. The activation service installation wizard will start. Specify that you are going to install Key Management Service (KMS) server.
Next you need to obtain your corporate KMS key (KMS host key – this is the KMS server activation key) in your personal section on Microsoft website (https://www.microsoft.com/Licensing/servicecenter/home.aspx). You can find it in the section Downloads and Keys –> Windows Server –> Windows Server 2012 R2.
Find the key with type KMS (not MAK) and copy it to the clipboard.
Paste the copied KMS host key in the corresponding field of the installation wizard (Install your KMS host key).
If the system accepts the key, you will immediately be prompted to activate it. Based on the entered key, the system will determine the product to which it applies, and will offer two options for activation (by phone or Internet). In the second case, you will have to give the server temporary access to the Internet (only for the activation time).
After the key is activated, you have to configure Key Management Service options: activation and renewal intervals (by default, the clients will renew the activation every 7 days), port (by default, KMS listens on port 1688) and Windows Firewall exceptions. To automatically create a DNS record necessary to automatically search a KMS server in the domain (SRV record _vlmcs._tcp), check the option DNS Records – Publish.
If the KMS server is designed to serve clients from different domains, you can publish DNS records in other DNS zones. Specify the zone names in the Publish to Custom DNS zones list.
Get-NetFirewallRule -DisplayName *key*
Enable-NetFirewallRule -Name SPPSVC-In-TCP
Using Windows 2012 R2 KMS for Activation of Volume-Licensed Systems
Now the configuration is over. Verify that a special DNS record pointing to your KMS server was created:
nslookup -type=srv _vlmcs._tcp.corp.woshub.com
Then get the information about the KMS server current status:
Pay attention to the following fields:
- Partial Product Key – the last 5 symbols of the KMS key are shown.
- License status – license activation status (it should be Licensed).
- Total requests received – the number of activation requests (0 yet).
- The activation threshold for client operating systems: Vista / Windows 7 / Windows 8 / Windows 10 is 25 clients;
- In case of server operating systems: Windows Server 2008/ 2008 R2 / 2012 / 2012 R2 / 2016 it is 5 clients.
Now the KMS server can activate clients. To successfully activate your systems on the KMS server, you need to perform a number of actions on the client side:
- Specify the public KMS (GVLK) key from the corresponding edition of Windows on the client (links below):
slmgr /ipk xxxxx- xxxxx - xxxxx - xxxxx – xxxxx
- If your KMS server is not published in DNS, specify it address manually:
slmgr /skms kms-sr1.woshub.com:1688
- Activate the OS with the command:
The KMS server that is activated with the KMS host key for Windows Server 2012 R2 (VOLUME_KMS_WS12_R2 channel) supports the activation of all Windows operating systems up to Windows 8.1 / Windows Server 2012 R2 (to activate Windows 10 and Windows Server 2016, you need to install a special update on KMS host and re-activate the KMS server with a new key).
If you try to install a new KMS key for Windows 10 on a KMS server running Windows Server 2012 R2 using VAMT without installing the specified update, you receive an error:
- Public KMS keys (GVLK – Generic Volume License Key) for Windows 7 / Server 2008 /2008 R2 can be found here, for Windows 8.1 / Server 2012 R2 here, for Windows 10 / Windows Server 2016 here and here, respectively.
- For convenient MS product keys management, clients activation and reports generation, you can use the Microsoft Volume Activation Management Tool.
- Using the same KMS server, you can activate not only Windows OS, but also MS Office products (for details see Activation of MS Office 2013 VL, KMS activation of Office 2016).
- To activate virtual machines running on the Hyper-V, you can use the special activation type: AVMA (Automatic Virtual Machine Activation).