大网数据广告活动
启动与系统组件

Error 0xC004C008 "The specified product key could not be used" when you activate Windows

· 52CE 我爱测

Discusses how to resolve error 0xC004C008 ("The activation server determined that the specified product key could not be used"). This error occurs if your Key Management Services (KMS) host key exceeds its activation limit.

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:

  1. Open an administrative Command Prompt window on the Azure VM.

  2. 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
    
  3. 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
    
  4. 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

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.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- ✅ Supported versions of Azure Virtual Machine - ✅ Supported versions of Windows Client - ✅ Supported versions of Windows Server · Source date 05/28/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。