How do I activate Windows Server with product key?

Last updated 7th July 2022

Objective

When you install a Windows Server operating system, the product key – also known as a KMS (Key Management Service) key – may not be installed correctly. In such cases, the operating system has been installed with a 120-day trial key. Once this time period elapses, the operating system can no longer be used.

This guide will show you how to change the product key for your Windows Server environment.

Requirements

  • A dedicated server with Windows installed in your OVHcloud account
  • A Windows SPLA licence in your OVHcloud account
  • Administrative access to your server via remote desktop connection

Instructions

Uninstall the default product key

When your operating system is in trial mode, a default product key is installed. To modify it, open the Run dialogue box by pressing the Windows key on your keyboard + R.

How do I activate Windows Server with product key?

In this box, enter the following command:

cscript.exe c:\windows\system32\slmgr.vbs -upk

Install the new product key

You can now install the new product key. To do so, go back to the Run box, and enter the following command:

cscript.exe c:\windows\system32\slmgr.vbs -ipk PRODUCT KEY

Below is a list of the product keys available for each operating system:

Operating systemProduct key
Windows Server 2008 Standard TM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Enterprise YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 Datacenter 7M67G-PC374-GR742-YH8V4-TCBY3
Windows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 R2 Enterprise 489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 Datacenter 74YFP-3QFB3-KQT8W-PMXWJ-7M648
Windows Server 2012 Standard XC9B7-NBPP2-83J2H-RHMBY-92BT4
Windows Server 2012 Datacenter 48HP8-DN98B-MYWDG-T2DCC-8W83P
Windows Server 2012 R2 Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2012 R2 Datacenter W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
Windows 8.1 Professional GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B
Windows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2022 Standard VDYBN-27WPP-V4HQT-9VMD4-VMK7H
Windows Server 2022 Datacenter WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Source: Microsoft

Core versions use the same product keys as non-core versions.

Associate your product key

To associate your key with our automated activation system, enter the command below in the Run dialogue box:

cscript.exe c:\windows\system32\slmgr.vbs -skms kms.ovh.net

If you are using a VPS or Public Cloud instance, you will need to use kms.cloud.ovh.net.

Activate the system

Lastly, to activate your Windows operating system, simply enter the command below:

cscript.exe c:\windows\system32\slmgr.vbs -ato

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

지침

AVMA keys can be found here. https://docs.microsoft.com/en-us/windows-server/get-started-19/vm-activation-19
KMS Keys can be found here. https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys

Example of command with Server 2019 KMS key. Substitute product key with product key on customer's COA sticker if available.

dism /online /set-edition:ServerStandard /productkey:N69G4-B89J2-4G8F4-WWYCC-J464C /accepteula

If customer is trying to activate VM and they are running Datacenter version of operating system on the host they can use AVMA keys for VMs but the AVMA keys will not work to convert from EVAL so we must use KMS key to convert then after it is converted update the VM with the AVMA key with this command.

slmgr /ipk

Note: Windows Server Standard Core cannot be converted from EVAL. EVAL Standard Core installs can only be converted to Windows Server Datacenter Core which requires a Datacenter product key. Also, you can't have the Active Directory role installed, it will prevent converting so have to remove the role, convert then reinstall the role.

비디오

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows HPC Server 2008 Service Pack 2, Microsoft Windows Small Business Server 2008, Microsoft Windows Small Business Server 2011 Essentials자세히 보기

Can I activate Windows with product key?

To activate Windows, you need a digital license or a product key. If you're ready to activate, select Open Activation in Settings. Click Change product key to enter a Windows product key. If Windows was previously activated on your device, your copy of Windows 10 or Windows 11 should be activated automatically.

What is my Windows Server product key?

Checking Windows Server Product Key Box, Email If you have purchased a physical copy, the Windows server product key will be on a label on the card inside the product box. This is one of the easiest methods that you can use to find your Windows server product key.

How can I tell if my Windows server is activated?

How to Check If Windows Is Activated?.
On Windows 10 and Windows Server 2022/2019/2016, go to Settings -> Update & Security -> Activation (or run the ms-settings:activation URI command to access the ms-settings quickly).
In Windows 11, open Settings -> System -> Activation..

How can I activate Windows from KMS server?

Manual Windows Activation.
Open a command prompt with elevation (Right click and run as administrator).
Run the following command to point Windows to the KMS server: cscript c:\windows\system32\slmgr.vbs -skmskms1.kms.sjsu.edu..
Run the following command to activate Windows: cscript c:\windows\system32\slmgr.vbs -ato..