KMS Activation Error 0xC004F074: No Key Management Service (KMS) Could Be Contacted

Windows activation fails with 0xC004F074, no KMS could be contacted or the KMS is unavailable? Read event 12288, then check the clock (0xC004F06C), sppsvc on the KMS host, TCP 1688 and the _VLMCS SRV and A records.

Home › Guides › KMS activation error 0xC004F074

Last updated 22 November 2026

Quick answer

0xC004F074 means the KMS client couldn't get an activation from any KMS host: Microsoft's error code list says it occurs when all the KMS hosts the client tries return errors. Look at the Application log on the client for each Event ID 12288 logged with the attempt; the Info line carries the real error from each host. The causes Microsoft gives: the Software Protection service (sppsvc) stopped on the KMS host, TCP 1688 blocked between client and host, an old or wrong _VLMCS SRV or host (A) record in DNS, a clock difference of more than 4 hours (inner error 0xC004F06C), or a KMS host too old for the client's Windows version. Fix the cause, then retry with slmgr.vbs /ato.

The two messages

Windows shows 0xC004F074 with one of these:

0xC004F074 with description "The Key Management Server (KMS) is unavailable"
Error: 0xC004F074 The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.

Microsoft ties the first to KMS hosts that answer but refuse (version mismatch, time difference) and the second, seen after slmgr /ato, to hosts the client can't reach or find.

Causes and fixes

CauseHow you spot itFix
Clock difference of more than 4 hours between client and KMS hostEvent 12288 on the client and 12290 on the host show 0xC004F06C (request timestamp is invalid)Sync time from NTP or Active Directory; w32tm /resync on the client
KMS host too old for the client's Windows versionThe KMS host is unavailable message; host on an older Windows Server than the clientsUpdate the KMS host so it can activate the newer clients
Software Protection service (sppsvc) stopped on the KMS hostNo KMS could be contacted; the service isn't running on the hostStart sppsvc on the KMS host
TCP 1688 blocked between client and KMS hostTest-NetConnection to port 1688 shows TcpTestSucceeded : FalseOpen port 1688 in every firewall between them
Old or wrong KMS host record in DNSThe _VLMCS SRV record or the host's A record points to a retired or wrong serverCorrect the SRV and A records

Read events 12288 and 12290

On the KMS client, the Application log has the request (shortened):

Log Name: Application
Source: Microsoft-Windows-Security-SPP
Event ID: 12288
Description:
The client has sent an activation request to the key management service machine.
Info:
0xC004F06C, 0x00000000, <KMS Host FQDN>:1688, ...

On the KMS host, the Key Management Service log has the matching entry:

Log Name: Key Management Service
Source: Microsoft-Windows-Security-Licensing-SLC
Event ID: 12290
Description:
An activation request has been processed.
Info:
0xC004F06C,5,<KMS Client name>,...

The first value in Info is the result for that host. Microsoft's solution for 0xC004F074 is to find each 12288 event tied to the attempt and troubleshoot each error it shows. The host name and port in the client event also tell you which KMS host the client actually tried.

Time difference (0xC004F06C)

The KMS host rejects requests when the client's system time differs from its own by more than 4 hours. The comparison is in Coordinated Universal Time (UTC), so the time zone setting on the client doesn't matter, only the actual clock. Use an NTP source or the Active Directory time hierarchy on both machines and resync the client:

w32tm /resync

If the domain time itself is wrong, fix it first: see Windows Time service events 12, 29, 36 and 47.

KMS host version mismatch

Microsoft's article describes the classic case: a KMS host on Windows Server 2003 or Windows Server 2008 can't activate Windows 7 or Windows Server 2008 R2 clients without an update (hotfix 968912 for a Windows Server 2008 host). Those versions are out of support today, but the check is the same: when clients get the KMS host is unavailable message, compare the KMS host's Windows version and updates with the Windows versions of the clients.

Service, port and DNS checks

  1. On the KMS host, check the Software Protection service and start it if it's stopped:
    Get-Service sppsvc
    Start-Service sppsvc
  2. From the client, test port 1688 to the host:
    Test-NetConnection -ComputerName <KMS Host Server> -Port 1688
    If TcpTestSucceeded is False (even with PingSucceeded : True), port 1688 is blocked between client and host.
  3. In the DNS console, open the _tcp folder under your domain and find the _VLMCS SRV record. Check that it names the current KMS host.
  4. In the domain folder, check the KMS host's Host (A) record and change the IP address if it still points to an old server.
  5. Retry: cscript c:\windows\system32\slmgr.vbs /ato.

If the client can't find any KMS host in DNS or can't reach a DNS server at all, you get 0x8007232B or 0x8007232A instead. Microsoft's Support and Recovery Assistant (SaRA) has a KMS activation troubleshooter that recognises 0xC004F074, and for a case with Microsoft support, collect data with TSS for deployment-related issues.

Related tools and guides

Look up Security-SPP event 12288 and Security-Licensing-SLC event 12290 in the Windows Event ID Lookup, copy the slmgr, w32tm and Test-NetConnection lines from the PowerShell Cheat Sheet, pull the error codes and KMS host names out of the event Info lines with the Regex Tester, check that the client and the KMS host are in the subnets your firewall rules allow with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of a firewall that blocks port 1688 with the MAC Vendor Lookup. Related guides: KMS activation errors 0x8007232A and 0x8007232B, activation errors 0xC004C003 and 0xC004C008, Windows Time service events and common Windows DNS Server and DHCP Server errors.

Event 12288 shows 0xC004F06C, or the host answers with 0xC004F038 or 0xC004F042? See KMS activation error 0xC004F06C and KMS activation errors 0xC004F038 and 0xC004F042. Only event 8198 with 0xC0020017 or 0x8007139F? See event 8198 KMS contact failure.

ADBA or KMS works for some machines only, with 0x8007007B? See ADBA clients not activating.

The RPC server is unavailable (0x800706BA)? See activation errors 0x8007267C, 0x8007251D, 0x80092328 and 0x800706BA.

Every Windows activation and KMS error code and event in one place: common Windows activation and KMS errors.

FAQ

What does 0xC004F074 mean?

The KMS client could not get an activation from any KMS host. Microsoft says it occurs when all the KMS hosts the client tries return errors, so the real error for each host is in Application log event 12288.

Can a time difference cause 0xC004F074?

Yes. If the client clock differs from the KMS host clock by more than 4 hours, the host returns 0xC004F06C. The comparison uses UTC, so the time zone does not matter; resync with w32tm /resync.

How do I test the KMS port?

Run Test-NetConnection -ComputerName with the KMS host name and -Port 1688 from the client. TcpTestSucceeded False means port 1688 is blocked between them.

Which service must run on the KMS host?

The Software Protection service, sppsvc. If it has stopped on the KMS host, clients get No Key Management Service (KMS) could be contacted until it is started again.

How do I check the KMS DNS records?

In the DNS console open the _tcp folder under your domain, find the _VLMCS SRV record and check that it names the current KMS host, then check the host A record of that server.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.