Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Step-by-step guide to install and configure a Windows KMS (Key Management Service) server

blog.payperitem.com, April 13, 2025

✅ 1. System Requirements

  • A Windows Server (2012 R2 or newer recommended)
  • Administrator access
  • A KMS Host Key (GVLK) from Microsoft (usually part of a Volume Licensing agreement)

🛠️ 2. Install the KMS Host Key

a) Install Volume Activation Tools (if not already installed)

  1. Open Server Manager
  2. Go to Manage → Add Roles and Features
  3. Click Next through to Features
  4. Check Volume Activation Services
  5. Complete the wizard and install

b) Run Volume Activation Tools

  1. After installation, go to Server Manager → Tools → Volume Activation Tools
  2. Choose:
    • Key Management Service (KMS)
    • The local computer
  3. Enter your KMS Host Key (from VLSC)
  4. Activate it online (or by phone if needed)

🔧 3. Configure the KMS Host

Once the key is validated:

  • The server will create a SRV DNS record (_vlmcs._tcp) automatically (if DNS is configured correctly)
  • KMS clients will find it via DNS

To verify:

powers

nslookup -type=SRV _vlmcs._tcp

You should see your KMS server listed.


🔥 4. Allow KMS Port Through Firewall

KMS uses TCP port 1688. Run:

powershell

netsh advfirewall firewall add rule name="KMS TCP 1688" protocol=TCP dir=in localport=1688 action=allow

💻 5. Activate Clients Using KMS

On client machines:

  1. Use a GVLK (Generic Volume License Key) from Microsoft
    • List of GVLKs
  2. Set KMS server and activate:
cmd

slmgr /ipk <GVLK>
slmgr /skms <KMS_server_name_or_IP>
slmgr /ato

🔄 6. Verify KMS Server Status

On the KMS host:

cmd

lmgr /dlv

You’ll see:

  • KMS version
  • Activation count
  • Threshold (25 for clients, 5 for servers)
  • Whether clients are connecting

📈 7. KMS Activation Thresholds

  • Windows Clients need a minimum of 25 activations
  • Windows Servers need 5

Until the threshold is reached, clients will not activate.

Active Directory Server 2025 Windows

Post navigation

Previous post
Next post

Related Posts

Migrating from an on-premises Exchange Server to Office 365 (Microsoft 365)

March 30, 2025March 30, 2025

Step 1: Plan Your Migration Assess Your Current Environment Choose a Migration Strategy There are three main migration types: Step 2: Prepare for Migration 1. Verify Domain Ownership in Microsoft 365 2. Set Up Directory Synchronization (If Required) 3. Assign Licenses in Office 365 Step 3: Perform the Migration 1….

Read More

Deeper troubleshooting, like authoritative restore with NTDSUTIL

April 3, 2025

Authoritative Restore of Deleted Groups/Users Using NTDSUTIL If Active Directory Recycle Bin is not enabled and you don’t have a backup with a simpler restore method, an authoritative restore using ntdsutil is required. This process restores deleted users or groups from an Active Directory System State backup and marks them…

Read More

Implementing secure solutions using AWS Directory Services, Azure AD Connect, AWS SSO, and third-party integrations

April 16, 2025

✅ 1. AWS Directory Services Options: Best Practices: ✅ 2. Azure AD Connect (Hybrid Identity Sync) Purpose: Sync on-prem AD with Azure AD for SSO across Microsoft cloud services. Secure Implementation: Security Add-ons: ✅ 3. AWS SSO (IAM Identity Center) Purpose: Centralized user access to AWS accounts and third-party applications….

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }