Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Windows activation error 0xC004C008: KMS host product key could not be used

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When activation fails with 0xC004C008, Windows Script Host shows that the activation server determined the specified product key could not be used. Microsoft’s dedicated article states this happens when a KMS host key exceeds its activation limit: up to 10 activations on a maximum of six computers. Typical scenarios: the same KMS key reused on too many hosts, the host key used on a non-host, or the KMS role moved to a new server.

What the symptom means

Microsoft quotes the message as:

Error: 0xC004C008 The activation server determined that the specified product key could not be used.

The activation error-code catalogue lists the same text under activation type KMS, and the shorter troubleshooting article says you can only activate KMS host keys up to 10 times on no more than six different computers.

Prove the cause before changing anything

These steps only read.

1. Confirm the on-screen or script activation message shows 0xC004C008. Check licence status with Microsoft’s slmgr options (/dlv displays detailed licence information; it does not by itself prove the last activation error code):

cscript c:\windows\system32\slmgr.vbs /dlv

Write down, in a note you keep with the change record (for example act-c004c008-dlv-before.txt): Description, Partial Product Key, License Status, any KMS machine name shown, and today’s date.

2. Establish whether this machine is a KMS host (Volume Activation Tools / your volume-licence inventory) versus a KMS client. Client count problems are 0xC004F038; unreachable KMS is 0xC004F074.

3. List how many servers already use this host key in your volume-licence inventory.

Fix

On-premises: request more activations or a new key — description

Microsoft’s resolution: contact Microsoft Volume License Key assisted support (or the Engage Center request form) to reset the activation count or obtain a new KMS host key. Required web-form fields include agreement/enrollment/licence ID, product name, number of host activations needed, and business justification. Users need the VL Administrator or Product keys reader role to request more than six KMS hosts.

Azure VM: point at Azure KMS

Microsoft’s Step 2 for Azure VMs that should not use a self-hosted KMS:

Write down, in a note you keep with the change record (for example act-c004c008-skms-before.txt): the current KMS machine name from /dlv (or that none was set), the Partial Product Key shown, the escrow location that holds the full matching product key, and today’s date.

Risk: the next commands install a KMS client setup key and change the KMS server name. A wrong client key for the edition breaks activation until you put back the key and KMS name you wrote down.

Set the matching KMS client setup key for your Windows edition. Microsoft’s example for Windows Server 2022 Datacenter:

cscript c:\windows\system32\slmgr.vbs /ipk WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Then, as its own step:

cscript c:\windows\system32\slmgr.vbs /skms azkms.core.windows.net:1688

Then:

cscript c:\windows\system32\slmgr.vbs /ato

To undo it: run /ipk with the full product key from the escrow location named in act-c004c008-skms-before.txt (matching the Partial Product Key you recorded). If the note recorded a KMS machine name, run /skms with that exact name; if the note says no KMS name was set, run /ckms to clear the KMS name and restore auto-discovery (Microsoft’s slmgr options). Then /ato again.

Confirm the fix

  1. slmgr /dlv shows a licensed status without 0xC004C008.
  2. On-prem hosts show a successful host activation after Microsoft resets or replaces the key.
  3. Azure VMs remain on azkms.core.windows.net:1688 when that is the intended design.

What to watch afterwards

  • Rebuilding lab KMS hosts with one shared key burns the six-computer limit quickly.
  • MAK limit errors are 0xC004C020, not this code.
  • Clients still need a reachable, activated host after the host key is fixed.

Risks and limits

These steps have not been lab-tested.

The sample /ipk value is Microsoft’s published Windows Server 2022 Datacenter client setup key example; other editions need their own client setup keys from Microsoft’s KMS client key list.

Sources