All Products
Document Center

:How to use the KMS domain name to activate a Windows instance in a VPC

Last Updated:Dec 15, 2020


In VPC networks, you cannot use KMS of public cloud to activate Windows instances. This topic describes how to use a specific KMS domain name to activate Windows instances in a VPC network.


Alibaba Cloud reminds you that:

  • Before you perform operations that may cause risks, such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
  • You can modify the configurations and data of instances including but not limited to Elastic Compute Service (ECS) and Relational Database Service (RDS) instances. Before the modification, we recommend that you create snapshots or enable RDS log backup.
  • If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify such information in a timely manner.

The following section provides information about KMS domain names.

Region KMS domain
Regions in mainland China
China (Hong Kong)
US (Silicon Valley)
US (Virginia)
Japan (Tokyo)
Germany (Frankfurt)
UAE (Dubai)
Australia (Sydney)
India (Mumbai)
Malaysia (Kuala Lumpur)
Indonesia (Jakarta)
UK (London)


The following procedure describes how to activate a Windows instance in a VPC. The example instance is located in mainland China, so use "" as an example.

  1. Click start>Run, enter cmd, and then press the the Enter key to enter the command line window.
  2. Run the following command to replace KMS.
    slmgr -skms
    Note: If you fail to activate the ECS instance, you must first check whether the DNS server you are using is an Alibaba DNS server. If a non-Alibaba DNS server is used, cannot be resolved. We recommend that you set the default DNS server of the ECS instance created from the VPC to or
  3. If a similar output is displayed, the settings are successful. Then, click OK.
  4. Run the following command to activate KMS:
    slmgr -ato
    If a similar output is displayed, the activation is successful. Then, click OK.


For more information about activating Windows instances, see the following topics:

Application scope

  • Elastic Compute Service