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
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.
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.
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:
| Condition | Check | Fix |
|---|---|---|
| Windows Time service isn't working | services.msc: Windows Time is running; w32tm /query /status /verbose shows a source and a recent sync | Start the service and check the status again |
| NtpClient provider not enabled (workgroup or standalone computer) | Registry: ...\W32Time\TimeProviders\NtpClient, value Enabled | Set Enabled to 1 |
| Domain member not syncing from AD DS | Registry: ...\W32Time\Parameters, value Type | Make sure Type is NT5DS (AD DS time hierarchy) |
services.msc, find Windows Time and make sure it's running. Then, in an elevated prompt:w32tm.exe /query /status /verbose
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClientand set
Enabled to 1.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\Parametersthe
Type value should be NT5DS.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
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.
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.
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.
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.
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.
No. The comparison uses UTC, so only a clock that is actually wrong causes it, not the time zone setting.
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.
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.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.