Summary
When you try to activate Windows, you might receive error 0xC004C008 if your Key Management Services (KMS) host key exceeds its activation limit. The troubleshooting steps in this article help you to reset the key, obtain a new key, or, for Azure virtual machines (VMs), use the Azure KMS service to activate. The steps apply to physical computers, on-premises VMs, and Azure VMs.
Symptoms
When you try to activate a Windows system, you see the following error message in Windows Script Host:
**Error: 0xC004C008** The activation server determined that the specified product key could not be used.
Cause
This error occurs if the Key Management Services (KMS) host key exceeds its activation limit. You can use a KMS host key for up to 10 activations on a maximum of six computers. If you exceed the limit, the key is flagged, and further activation attempts fail.
This error typically occurs in the following scenarios:
- The KMS host key has already been used to set up other KMS hosts. For example, you reuse a shared KMS key across multiple KMS hosts in a test or development environment.
- The KMS host key was used incorrectly to activate non-KMS host.
- The KMS host role was moved to new server.
Resolution
Use the following steps to troubleshoot and fix the issue. To get the best results from these procedures, you should be familiar with the slmgr script.
Step 1: Get a new key or reset the existing key
Important:
To request more KMS activations to activate more than six KMS hosts, you must have the VL Administrator or Product keys reader role.
If you need a KMS host key (for example, for VMs that are in an isolated network), contact Microsoft Volume License Key assisted support. There, you can find the appropriate contact information to request a new key or to have the activation count on your existing key be reset.
You can also request additional activations through the Microsoft Engage Center request form. Provide the following information on the web form:
- Agreement number, enrollment number, or license ID
- Product name (including version and edition)
- The number of host activations that you need
- Business justification or reason for deployment
If you're trying to activate an Azure VM, and your infrastructure doesn't require a KMS key for a self-hosted KMS host, you can try Step 2.
Step 2 (Azure VMs): Activate by using Azure KMS
By default, Azure VMs should use Azure Key Management Service (KMS) activation. If the VM uses a KMS key for a self-hosted KMS server instead, reconfigure the VM to use Azure KMS:
-
Open an administrative Command Prompt window on the Azure VM.
-
Set the appropriate KMS client setup key for your Windows version. For example, for Windows Server 2022 Datacenter, run the following command:
cscript c:\windows\system32\slmgr.vbs /ipk WX4NM-KYWYW-QJJR4-XV3QB-6VM33 -
To configure the Azure VM to use Azure KMS, run the following command:
cscript c:\windows\system32\slmgr.vbs /skms azkms.core.windows.net:1688 -
To try again to activate, run the following command:
cscript c:\windows\system32\slmgr.vbs /ato
If activation fails and generates the same error, contact Microsoft Support for assistance.
References
- KMS client activation and product keys
- Troubleshoot Windows activation error codes
- Slmgr.vbs options for obtaining volume activation information
- Troubleshoot Azure Windows virtual machine activation problems
- Troubleshooting tools for Windows activation issues on Azure VMs
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
