All Products
Search
Document Center

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

Last Updated: Dec 15, 2020

Overview

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.

Detail

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 kms.cloud.aliyuncs.com
China (Hong Kong) kms.cloud.aliyuncs.com
Singapore sg.kms.cloud.aliyuncs.com
US (Silicon Valley) us1.kms.cloud.aliyuncs.com
US (Virginia) us2.kms.cloud.aliyuncs.com
Japan (Tokyo) jp.kms.cloud.aliyuncs.com
Germany (Frankfurt) de.kms.cloud.aliyuncs.com
UAE (Dubai) db.kms.cloud.aliyuncs.com
Australia (Sydney) au.kms.cloud.aliyuncs.com
India (Mumbai) in.kms.cloud.aliyuncs.com
Malaysia (Kuala Lumpur) my.kms.cloud.aliyuncs.com
Indonesia (Jakarta) id.kms.cloud.aliyuncs.com
UK (London) eu.kms.cloud.aliyuncs.com

 

The following procedure describes how to activate a Windows instance in a VPC. The example instance is located in mainland China, so use "kms.cloud.aliyuncs.com" 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 kms.cloud.aliyuncs.com
    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, kms.cloud.aliyuncs.com cannot be resolved. We recommend that you set the default DNS server of the ECS instance created from the VPC to 100.100.2.136 or 100.100.2.138.
  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.

Reference

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

Application scope

  • Elastic Compute Service