0xC004F074 — the KMS host could not be contacted
A volume-licensed machine cannot reach a KMS server, or reached one that will not activate it.
What you see
Activation fails with 0xC004F074 and text about the Key Management Service being unavailable. Windows goes into notification mode.
What is actually wrong
Either DNS has no _VLMCS SRV record, the KMS host is unreachable on TCP 1688, the host has not met its activation threshold, or the machine has a KMS client key when it should have a MAK.
Codes and articles
Fixes (2)
Prove the KMS host is discoverable and reachable
The machine should be activating against an on-premises KMS host.
Check what the client currently thinks.
cscript C:\Windows\System32\slmgr.vbs /dlvLook for the SRV record KMS clients use to find the host.
Resolve-DnsName -Name _vlmcs._tcp -Type SRVIf this returns nothing, the client has no way to find a host and everything else is moot. The record is published by the KMS host itself.
Test the port to the host the record named.
Test-NetConnection -ComputerName kms.example.local -Port 1688If DNS is broken but the host is known, point the client at it directly as a temporary measure.
cscript C:\Windows\System32\slmgr.vbs /skms kms.example.local:1688Activate.
cscript C:\Windows\System32\slmgr.vbs /ato
cscript C:\Windows\System32\slmgr.vbs /dliInstall the MAK key instead
There is no KMS infrastructure and the machine should be using a Multiple Activation Key.
Install the MAK.
cscript C:\Windows\System32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXXActivate against Microsoft.
cscript C:\Windows\System32\slmgr.vbs /atoIf there is no internet, use phone activation.
slui 4
cscript C:\Windows\System32\slmgr.vbs /dliRelated faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.