Activate Windows License

Last updated: 2020-02-25 12:15:00

PDF

Tencent Cloud CVM uses KMS to authorize Windows servers.

  • This document is only for the Windows Server public Image provided by Tencent Cloud, Custom image or external import Image can not use the activation method of this article.
  • Windows Server 2008 and Windows Server 2012 need to be authorized in this way the KMS address (kms.tencentyun.com:1668) configured by default in the public Image of, Windows Server 2016 is correct and does not need to be modified.

Instructions before activation

SPP Notification Service on Windows is used to perform activation-related services and its normal operation needs to be ensured, as shown below.
Some optimization software may disable the change to execute permissions of service-related executables. For example, the change to the execute permission of sppsvc.exe process can cause abnormal operation of service:
Before you attempt to activate Windows, make sure the service and other basic functions on Windows are in a normal condition.

Automatic activation

Tencent Cloud encapsulates a script for the activation of Windows servers, simplifying the steps of manual activation.

  1. Log in to the Windows CVM.
  2. Through the browser Access http://mirrors.tencentyun.com/install/windows/activate-win.bat Address, download the script.
  3. Run the script to complete the automatic activation.

Run the activation manually.

Considerations

On some systems, an error occurs when manually activating if there is a problem with the system clock. At this point, you need to synchronize the system clock first. The steps to synchronize the clock are as follows:

If the system clock on Windows Cloud Virtual Machine is normal, please proceed directly Activation step .

  1. Log in to the Windows CVM.
  2. In the operating system interface, click start > run, and enter cmd.exe To open the console window
  3. Synchronize the system clock by executing the following commands in the console window.
w32tm /config /syncfromflags:manual /manualpeerlist:"ntpupdate.tencentyun.com"
w32tm / resync

Activation step

  1. Log in to the Windows CVM.
  2. In the operating system interface, click start > run, and enter cmd.exe To open the console window
  3. The manual activation can be completed by executing the following commands in the console window.
  • The commands executed by the Windows Server 2008 and Windows Server 2012 servers are as follows:
cscript /nologo %windir%/system32/slmgr.vbs -skms kms.tencentyun.com:1688
cscript /nologo %windir%/system32/slmgr.vbs -ato
  • The Windows Server 2016 server executes the following commands in sequence:
cscript /nologo %windir%/system32/slmgr.vbs -skms kms.tencentyun.com:1688
cscript /nologo %windir%/system32/slmgr.vbs -ato