Quick answer: KMS stands for Key Management Service. It is Microsoft’s system for activating Windows and Office in bulk inside an organization. Instead of each PC contacting Microsoft, a company runs its own KMS host, and computers on the network activate against it. A KMS activation lasts 180 days and renews automatically every 7 days while the PC can reach the host. KMS is legitimate only for organizations with a volume licensing agreement. “KMS activators” and public KMS servers that promise free activation are piracy tools and a common source of malware.
If you have ever seen “Volume activation will expire” in a Windows dialog, an error such as 0xC004F074, or a website offering a “KMS key” for free, you have met the Key Management Service. KMS is a real and widely used Microsoft technology, and it is also one of the most abused. This guide explains what KMS activation is, how it works step by step, how it differs from MAK and retail activation, which commands show what your PC is doing, and how to recognize and fix an activation that should not be there.
What is KMS?
Every copy of Windows and Office must be activated, which means proving to Microsoft that the license is valid. For a home user that is a single key on a single PC. For a company with five thousand computers, typing five thousand keys and letting each machine talk to Microsoft over the internet would be unmanageable, and many corporate networks do not allow it.
The Key Management Service solves that. Introduced with Windows Vista and Windows Server 2008, it moves activation inside the organization. One server, the KMS host, is activated with Microsoft once. After that, client computers activate against the host over the local network. No client needs its own unique key or its own connection to Microsoft.
How KMS activation works, step by step
- The organization obtains a KMS host key. This key, also called a CSVLK, comes with a volume licensing agreement and is available in the Microsoft 365 admin center.
- An administrator installs the key on a server running the Volume Activation Services role, and activates that host with Microsoft online or by phone.
- The host announces itself in DNS by publishing a service record named
_vlmcs._tcp. - Client PCs are installed with a generic KMS client key, known as a GVLK. Volume editions of Windows and Office use these keys by default.
- Each client looks up the DNS record, finds the host and connects to it on TCP port 1688.
- The host counts the clients. It only begins activating once enough distinct computers have contacted it: 25 for Windows client editions, and 5 for Windows Server and Office. This is the activation threshold.
- The client is activated for 180 days. It tries to renew every 7 days. Each successful renewal resets the 180-day period.
- If the client cannot reach the host for 180 days, for example a laptop that never returns to the office, it falls out of activation and shows notifications until it reconnects.
Microsoft documents the design in KMS activation planning.
KMS key types: host keys and client keys
The phrase “KMS key” is used for two very different things.
| KMS host key (CSVLK) | KMS client key (GVLK) | |
|---|---|---|
| Who has it | The organization, under its license agreement | Everyone. Microsoft publishes them |
| Where it is installed | On the KMS host server only | On every client PC |
| Is it secret? | Yes | No |
| Does it grant a license? | It represents the organization’s purchased licenses | No. It only tells the PC to look for a KMS host |
The public list is on Microsoft Learn under KMS client activation and product keys. For example, the client key for Windows 11 Pro and Windows 10 Pro is W269N-WFGWX-YVC9B-4J6C9-T83GX. Websites that present these as “free product keys” are misleading readers. Without a licensed host on your network, a client key activates nothing. We explain that in detail in free Windows 10 and Windows 11 keys: what works and what doesn’t.
KMS vs MAK vs retail activation
| Method | How it activates | Lasts | Best for |
|---|---|---|---|
| KMS | Against the organization’s own host | 180 days, renewed automatically | 25 or more PCs that stay on the company network |
| Active Directory-based activation | Through the domain, when the PC joins | 180 days, renewed automatically | Domain-joined fleets |
| MAK (Multiple Activation Key) | Each PC activates once with Microsoft | Permanent | Smaller sites, isolated or travelling PCs |
| Retail key | Each PC activates once with Microsoft | Permanent, usually transferable | Individuals and small businesses |
| OEM key or digital license | Tied to the device hardware | Permanent for that device | PCs sold with Windows |
The practical difference for a user is permanence. A retail, OEM or MAK activation is done once. A KMS activation is a rolling lease that depends on staying in touch with the organization.
Useful commands to check activation
Open Command Prompt as administrator. These commands only read or set licensing information.
| Command | What it does |
|---|---|
slmgr /dli | Shows the edition, license channel and partial product key |
slmgr /dlv | Shows detailed information, including the KMS host name and renewal interval |
slmgr /xpr | Shows whether activation is permanent or when it expires |
slmgr /ipk KEY | Installs a product key |
slmgr /ato | Attempts activation now |
slmgr /skms host:1688 | Points the client at a specific KMS host |
slmgr /ckms | Clears a manually set KMS host and returns to DNS discovery |
nslookup -type=srv _vlmcs._tcp | Checks whether a KMS host is published in DNS |
For Office, the equivalent tool is ospp.vbs in the Office program folder. Running cscript ospp.vbs /dstatus lists the installed licenses and their status.
Common KMS errors and what they mean
| Error | Meaning | What to do |
|---|---|---|
| 0xC004F074 | The PC could not contact a KMS host | At work: check network, DNS and port 1688. At home: you need a retail key |
| 0x8007232B | The KMS DNS record does not exist | The network has no KMS host. Install a retail or MAK key |
| 0xC004F038 | The host has not reached its activation threshold | More clients must contact the host. Common in small test labs |
| 0xC004F039 | The Key Management Service is not enabled on the host | The administrator must activate the host |
| 0xC004F042 | The host cannot activate this edition | The host key does not cover the client’s product |
If one of the first two appears on a personal computer, it almost always means a volume edition or a KMS client key was installed, for example on a used PC that once belonged to a company. The fix is to install a key that matches how you actually use the PC. Our guides on product key errors and activating Windows properly walk through it.
KMS activators and public KMS servers: why to avoid them
Because the KMS protocol is simple and client keys are public, people have built programs that imitate a KMS host. These “KMS activators” either run a fake host on your own PC or point Windows at an anonymous server on the internet. Windows then believes it belongs to a licensed organization.
It does not, and the problems go beyond licensing:
- It is not a license. Activation status and the right to use the software are separate things. A PC activated this way is unlicensed.
- Malware risk is high. Activators ask you to disable antivirus and run them with administrator rights. Security vendors regularly find password stealers, miners and remote access trojans bundled with them.
- They persist. Many install a scheduled task or service that runs every few days to renew the activation, which is also an ideal foothold for anything else the author included.
- Public servers see your PC. Every renewal sends machine identifiers to a server run by someone you do not know.
- It breaks. Windows updates and Defender detect and remove these tools, and activation then lapses.
- Businesses face audits. Unlicensed installations found in a compliance review are charged at full price plus penalties.
How to tell if a PC was activated with an unofficial KMS
This matters when you buy a used or refurbished computer, or have one set up by a third party.
- Run
slmgr /xpr. A home PC should say “The machine is permanently activated”. “Volume activation will expire” on a personal PC is a warning sign. - Run
slmgr /dlv. Look at the KMS machine name. A local address such as 127.0.0.2, or an unfamiliar internet host, points to an activator. - Check Task Scheduler and installed services for unknown entries that mention activation or KMS.
To clean it up, scan the PC with Microsoft Defender Offline, remove the tool, then run slmgr /upk to uninstall the client key and slmgr /ckms to clear the host setting. Finally, enter a genuine key in Settings, System, Activation. If the system has been running an activator for a long time, a clean installation is the safer route. See how to download, install and activate Windows.
Who should use KMS, and what everyone else should use
Use KMS if you manage at least 25 Windows PCs or 5 servers under a volume licensing agreement and they connect to your network regularly. It is efficient, and it needs no per-device keys. Virtual machines in Azure also use it: Windows VMs activate against Microsoft’s own KMS endpoint automatically.
Use MAK for smaller numbers, isolated networks and devices that rarely return to the office.
Use a retail key if you are an individual, a family or a small business without a volume agreement. Activation is permanent, with no host to maintain and no renewal to fail. At GetDigiMarket, Windows 11 Pro is $11.99, Windows 10 Pro is $9.99 and Office 2024 Professional Plus is $14.99, each with a 180-day money-back guarantee. For servers, see our Windows Server product key buying guide and the Windows Server 2025 editions comparison. Long-term servicing editions are covered in what is Windows LTSC.
Frequently asked questions
What does KMS stand for?
Key Management Service. It is Microsoft’s volume activation service that lets organizations activate Windows and Office on their own network.
Is KMS activation legal?
Yes, when an organization with a volume licensing agreement runs its own KMS host. Using a KMS activator or a public KMS server without such licenses is not legal.
How long does KMS activation last?
180 days. Clients try to renew every 7 days, and each successful renewal starts a new 180-day period.
What is a KMS client key?
A generic volume license key, published by Microsoft, that tells Windows or Office to activate against a KMS host. It does not grant a license by itself.
What port does KMS use?
TCP port 1688 by default. Clients find the host through the DNS service record _vlmcs._tcp.
What is the difference between KMS and MAK?
KMS activates PCs against an internal host for 180 days at a time. A MAK activates each PC once, permanently, directly with Microsoft, up to a set number of activations.
Are KMS activators safe?
No. They do not provide a license, they are frequently bundled with malware, and they leave recurring tasks on the system.
How do I remove KMS activation from my PC?
Run slmgr /upk and slmgr /ckms as administrator, then enter a genuine retail key in Settings, System, Activation.