This document describes how to activate the operating system in a Windows CVM instance.
This document is intended only for Windows Server public images provided by Tencent Cloud. It is not applicable for custom images or images imported from external sources.
slmgr /ipk <ProductKey>
slmgr /skms kms.tencentyun.com
In some scenarios where the Windows operating system is not activated, the system memory of a high-end server will be limited to 2 GB, and the rest of the memory will be restricted in the form of "hardware reserved memory". The reason is that the
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions registry key is damaged. You can run the following command to determine whether to reactivate the system.
slmgr.vbs /ipk <ProductKey>
<productkey>according to the actual operating system version as detailed in ProductKey.
(Get-ItemProperty...command again for verification. The returned value is 56184.
(Get-ItemProperty...command again for verification, and the returned value is still 1960.
(Get-ItemProperty...command again for verification, and the returned value may change. However, after the system is restarted, the memory limit is still 2 GB.