KMS Activation Error 0xC004F06C: The Request Timestamp Is Invalid

slmgr /ato shows 0xC004F074 but event 12288 says 0xC004F06C, request timestamp is invalid? The client clock is too far from the KMS host. Check Windows Time, enable NtpClient or set NT5DS, resync and activate again.

Home › Guides › KMS activation error 0xC004F06C

Last updated 22 November 2026

Quick answer

0xC004F06C, "The Key Management Service (KMS) determined that the request timestamp is invalid", means the clock on the KMS client is too far from the clock on the KMS host. You usually don't see the code itself: slmgr /ato reports 0xC004F074 (no KMS could be contacted), and the real result, 0xC004F06C, is in Event ID 12288 in the client's Application log. Microsoft names three causes: the Windows Time service isn't working, the NtpClient time provider isn't enabled, or a domain-joined computer isn't syncing time with Active Directory. Get the service running, enable NtpClient on standalone machines, make sure domain members use NT5DS, then activate again.

What you see

Running slmgr /ato gives the generic message:

Error: 0xC004F074 The Software Licensing Service reported that the computer could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.

The Application log then has the actual answer from the KMS host (Microsoft's sample, from an Azure VM using Azure KMS):

Log Name:      Application
Source:        Microsoft-Windows-Security-SPP
Event ID:      12288
Level:         Information
Description:
0xC004F06C, 0x00000000, azkms.core.windows.net:1688, <CMID>, <DateTime>, 1, 5, 0, ...

The first value is the result and the third is the KMS host and port the client tried. The full message for the code in Microsoft's error list is:

The Software Protection Service reported that the computer couldn't be activated. The Key Management Service (KMS) determined that the request timestamp is invalid.

Why the timestamp is invalid

KMS compares the client's system time with its own. Microsoft's 0xC004F074 article puts the limit at 4 hours; past that, the host rejects the request. The comparison uses UTC, so picking the wrong time zone on the client doesn't cause it, only a clock that is actually wrong. (Microsoft's error list says "UTP time", a typo for UTC.) The three conditions Microsoft lists all come down to the client not getting its time from a good source:

ConditionCheckFix
Windows Time service isn't workingservices.msc: Windows Time is running; w32tm /query /status /verbose shows a source and a recent syncStart the service and check the status again
NtpClient provider not enabled (workgroup or standalone computer)Registry: ...\W32Time\TimeProviders\NtpClient, value EnabledSet Enabled to 1
Domain member not syncing from AD DSRegistry: ...\W32Time\Parameters, value TypeMake sure Type is NT5DS (AD DS time hierarchy)

Fix it step by step

  1. Check the Windows Time service. Open services.msc, find Windows Time and make sure it's running. Then, in an elevated prompt:
    w32tm.exe /query /status /verbose
  2. Computers that aren't in a domain: enable the NTP client. Back up the registry first, then open Registry Editor at
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
    and set Enabled to 1.
  3. Domain-joined computers: check that they follow the domain hierarchy. At
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\Parameters
    the Type value should be NT5DS.
  4. Restart the Windows Time service so it picks up the registry change, resync the clock and try activation again:
    Restart-Service W32Time
    w32tm /resync
    cscript c:\windows\system32\slmgr.vbs /ato

You can read both registry values without opening Registry Editor:

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient -Name Enabled
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters -Name Type

When the domain time itself is wrong

If a domain member is correctly set to NT5DS and still drifts, the problem is further up: the domain controllers, and in the end the PDC emulator of the forest root domain, need a good time source. Work through Windows Time service events 12, 29, 36 and 47 first, then come back to activation. The KMS host needs correct time too, since the comparison is between the two clocks.

For Azure VMs, Microsoft points to its troubleshooting tools for Windows activation issues on Azure virtual machines.

Related KMS errors

0xC004F06C is one of several inner errors behind 0xC004F074. The others (sppsvc stopped on the host, TCP 1688 blocked, a stale _VLMCS record, a host too old for the client) are in KMS activation error 0xC004F074. If the host answers but refuses because of its count or product, see 0xC004F038 and 0xC004F042.

Related tools and guides

Look up Security-SPP event 12288 and Time-Service events in the Windows Event ID Lookup, copy the w32tm and slmgr lines from the PowerShell Cheat Sheet, pull the result codes out of event 12288 text with the Regex Tester, check which subnet the client and the KMS host are on with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the vendor of the NIC on a VM with a drifting clock with the MAC Vendor Lookup. Related guides: KMS activation error 0xC004F074, Windows Time service events 12, 29, 36 and 47, KMS activation errors 0xC004F038 and 0xC004F042 and common Windows DNS Server and DHCP Server errors.

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

FAQ

What does 0xC004F06C mean?

The KMS host determined that the request timestamp is invalid: the client system time is too different from the time on the KMS host. Microsoft's 0xC004F074 article gives the limit as 4 hours.

Why does slmgr show 0xC004F074 instead of 0xC004F06C?

slmgr /ato reports the generic no KMS could be contacted error. The KMS host's actual answer, 0xC004F06C, is the first value in Event ID 12288 from Microsoft-Windows-Security-SPP in the client Application log.

Does the time zone cause 0xC004F06C?

No. The comparison uses UTC, so only a clock that is actually wrong causes it, not the time zone setting.

How do I fix 0xC004F06C on a workgroup computer?

Make sure the Windows Time service is running, set Enabled to 1 under the W32Time TimeProviders NtpClient registry key, restart the service, resync with w32tm /resync and activate again.

How do I fix 0xC004F06C on a domain-joined computer?

Check that the Type value under the W32Time Parameters registry key is NT5DS so the computer syncs from the AD DS time hierarchy, and make sure the domain controllers themselves have correct time.

Want the full kit?

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