Windows Activation Error 0xC004F074: No KMS Could Be Contacted, Causes and Fixes

The 0xC004F074 activation error appears when Windows tries to activate and cannot reach a Key Management Service (KMS) host. It affects PCs and servers that activate against a KMS host, such as office machines and virtual machines. Check that TCP port 1688 is open to the KMS host, that DNS names the right host, and that the clocks agree, then run activation again. On a home PC with a retail key, start with the home PC section below.

Advertisements

How this guide was made: it is compiled from Microsoft Learn troubleshooting articles and Microsoft Q&A community threads, checked on November 28, 2026. User-posted fixes are labelled as such. See the Driverswin editorial policy for how guides are made and checked.

0xC004F074 activation error: Windows activation fails, no KMS could be contacted

What the 0xC004F074 activation error means and when it appears

According to Microsoft’s article on error 0xC004F074 when you activate Windows, the error means activation failed because no KMS could be reached. It is returned when activation is run with Slmgr /ato. The article applies to supported versions of Windows Server and Windows Client, and its original KB number is 974998.

Microsoft lists these causes:

  • The Software Protection Platform service (sppsvc) on the KMS host has stopped running.
  • TCP port 1688 is blocked between the client and the KMS host.
  • DNS holds an incorrect or old KMS host record.
  • The KMS client and KMS host support different versions.
  • The clocks on the client and the KMS host differ.

On a home PC: check which kind of key Windows is using

The KMS checks further down assume an office network with a KMS host. A home PC has no KMS host to reach, so start with the key itself:

  1. Open Command Prompt as administrator and run slmgr.vbs /dlv. Read the Description line: Microsoft’s Azure article uses it to tell RETAIL media from VOLUME_KMSCLIENT media.
  2. If you bought a retail key, a community answer on Microsoft Q&A says the correct key must be installed first with slmgr.vbs /ipk <product key>.
  3. Then run slmgr.vbs /ato to try activation again.

One user on Windows 10 reported this error in a Microsoft Q&A thread despite having bought a lifetime license long ago. The cause in that case was not documented; the community advisor first asked for the slmgr.vbs /dlv output, so keep it for any help request.

Documented fixes on a KMS network, least invasive first

1. Check the clock

Event 0xC004F06C can show in the info section when the system time on the client and on the KMS host differ by more than 4 hours. Activation uses UTC, so the time zone set on the client does not matter. Microsoft recommends keeping computers in sync with an NTP time source or Active Directory. On the client, run this to resynchronize:

w32tm /resync

2. Test TCP port 1688 to the KMS host

From the client, run the command below. If the result shows TcpTestSucceeded as False, port 1688 is blocked between the client and the KMS host, and it has to be opened between them. In an office this usually means asking whoever manages the firewall.

Test-NetConnection -ComputerName <KMS Host Server> -Port 1688

3. Check the DNS record for the KMS host

This is done on the DNS server by an administrator:

  1. Open the DNS management console.
  2. Select the _tcp folder under the domain folder and look for the _VLMCS SRV record.
  3. Confirm that the record names the correct KMS host server.
  4. Check the KMS host’s Host A record in the domain folder, and change its IP address if it points to the wrong server.

4. Make sure sppsvc is running on the KMS host

On the KMS server, check whether the sppsvc service is running and start it if it is stopped.

5. Version mismatch between client and KMS host

Microsoft’s article also covers KMS hosts on Windows Server 2003 or Windows Server 2008 that need an update before they can activate Windows 7 or Windows Server 2008 R2 clients. This matters only on such older systems. In that case the client logs event 12288 in the Application log and the host logs event 12290 in the Key Management Service log.

Advertisements

If the machine is a Windows VM in Microsoft Azure

Microsoft has a separate article on error 0xC004F074 for Windows virtual machines in Azure. It applies only to Windows VMs in Microsoft Azure. If the VM uses Azure KMS (the default), the activation request must come from an Azure public IP address. Forced tunneling, a network virtual appliance, or a standard internal load balancer can block it. That article covers the connection test to the Azure KMS endpoint, routing and the load balancer cases, so follow it if your machine is an Azure VM.

User-reported suggestions (not confirmed by Microsoft)

Status for everything in this section: user reports and community answers on Microsoft Q&A, not confirmed by Microsoft.

  • A Microsoft Q&A answer on 0xC004F074 says the error can come from DNS configuration, network connectivity, firewall restrictions, incorrect KMS configuration, or an unavailable KMS server. It suggests checking whether the KMS host has reached its activation threshold and is answering activation requests.
  • A second Microsoft Q&A thread on troubleshooting 0xC004F074 suggests verifying the SRV record with nslookup -type=srv _vlmcs._tcp, then running slmgr.vbs /ato again on the client once the KMS host is reachable. It also suggests looking in Event Viewer under Applications and Services Logs, in the Key Management Service log, for activation events.

What to collect before asking for help

  • The result of the port test: Test-NetConnection -ComputerName <KMS Host Server> -Port 1688 (TcpTestSucceeded True or False).
  • The output of slmgr.vbs /dlv from an elevated Command Prompt, which a community advisor requested.
  • The system time on the client and on the KMS host, to see whether they differ by more than 4 hours.
  • Any events from the Application log and the Key Management Service log, including event IDs 12288 and 12290 if you see them.
  • If you contact Microsoft support, Microsoft’s article says to collect diagnostic data with TSS, as described in the article it links.

Sources

Advertisements

Leave a Comment