Windows activation error 0xC004F074, "No Key Management Service (KMS) could be contacted"

This code means Windows is set up for volume activation and is looking for a company Key Management Service host, but it cannot reach one. It is common on work or school PCs that are off the company network, and on personal PCs that have a volume license key installed by mistake. The fix depends on which of those two situations you are in.

The fix, in order

  1. On a work or school PC, connect to the organization network or VPN. KMS activation only works while the PC can reach the company KMS host. Once connected, retry activation at Settings > System > Activation, or run slmgr.vbs /ato in an admin Command Prompt.
  2. Check the date, time, and time zone. A wrong clock can break the secure connection to the activation server, so set them to update automatically and try again.
  3. Check for anything blocking the connection. A firewall, proxy, or VPN can block the KMS port, 1688. On a personal PC, try with the VPN turned off. On a managed PC, ask IT before changing firewall settings.
  4. On a personal PC, enter a retail key. If this is your own PC, it should not be looking for a KMS server at all. Go to Settings > System > Activation > Change product key and enter a retail key that matches the installed edition, or buy a digital license from the Microsoft Store.
  5. Run the Activation troubleshooter. Go to Settings > System > Activation and select Troubleshoot. On Windows 11 it can also be started from the Get Help app.
  6. For IT admins, check the KMS host itself. Confirm the KMS host is running and reachable, check the DNS records for it, and point the client at it with slmgr.vbs /skms <kms_host_name>, then retry with slmgr.vbs /ato. Microsoft also notes the Application event log may hold more detail.
Do not install a KMS activator or emulator to work around this error. Those tools are piracy tools, they often bundle malware, and any activation they provide is not genuine. A work PC needs its real company KMS host, and a personal PC needs a real retail key.

If it still happens

On a work or school PC, contact your IT team and tell them the error code, since only they can check the KMS host and the network path to it. On a personal PC, once a retail key is entered and the troubleshooter has run, contact Microsoft Support through the Get Help app or support.microsoft.com if activation still fails.

Common questions

Why is my home PC looking for a KMS server? Because a volume license key is installed on the PC, often fitted by a previous owner or supplied by a cheap key seller. Retail keys do not use KMS, so the fix is to enter a retail key that matches the installed edition.

Can I activate a work PC from home? Usually yes, by connecting to the company network over VPN and then retrying activation. If the VPN does not help, your IT team can check the KMS host or switch the PC to a different activation method.

What does slmgr.vbs /ato do? It tells Windows to try activating immediately and reports the result. It is useful after reconnecting to the company network or VPN, because it retries the KMS connection right away instead of waiting.

Related errors

Windows activation error 0x8007232B · Windows activation error 0x8007007B · Windows activation error 0xC004C003 · Windows Update error 0x80070005

Was this helpful?