How to Install and Activate Windows Server (2016-2022)

This guide covers Windows Server 2016, 2019, and 2022: verify or convert an Evaluation edition, enter the correct product key, and complete online or telephone activation.

Before you begin: confirm that Windows Server is not running an Evaluation edition, install pending updates, verify that your Standard or Datacenter license matches the installed edition, and have your valid 25-character product key ready.

1. Check the installed Windows Server edition

Standard and Datacenter product keys cannot activate an Evaluation installation directly. Open PowerShell or Command Prompt as administrator and run:

DISM /Online /Get-CurrentEdition
DISM /Online /Get-TargetEditions

If the current edition contains Eval or Evaluation, convert it to the licensed target edition before activation. Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your valid product key.

Convert to Windows Server Standard

DISM /Online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Convert to Windows Server Datacenter

DISM /Online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Use only an edition listed by Get-TargetEditions. Restart the server after the conversion finishes, then run DISM /Online /Get-CurrentEdition again to confirm the new edition.

2. Open the activation settings

Open Settings from the Start menu and navigate to the Windows activation page. Depending on the Windows Server version, it may appear under Update & Security > Activation or System > Activation.

Windows Settings showing Update and Security
On versions using the classic Settings layout, open Update & Security.
Windows Activation settings menu
Open Activation to check the installed edition and current status.

3. Enter the Windows Server product key

Select Change product key, enter the 25-character key exactly as supplied, and select Next.

Change product key option in Windows activation settings
Select Change product key from the Activation page.
Windows Server product key verification dialog
Enter the product key and allow Windows Server to verify it.

If Windows Server applies an edition change or requests a restart, let the process finish and return to the Activation page afterward.

4. Check the activation result

If Windows reports that it is activated, the process is complete. If error 0xC004C008 appears, close the error message and continue with telephone activation.

Windows activation error 0xC004C008
Error 0xC004C008 indicates that online activation was not completed.
Windows activation error details
Close the error details and return to the activation options.

5. Start telephone activation

Select Activate by phone. If that option is not displayed, press Windows + R, enter slui 4, and select OK.

Activate by phone option in Windows
Choose Activate by phone to open the telephone activation wizard.

6. Copy the Installation ID

Select your country or region and continue. The wizard displays an Installation ID (IID) divided into groups. Copy every group in the displayed order.

Windows telephone activation wizard showing the Installation ID
Copy every group of the Installation ID in order.

7. Obtain your Confirmation ID

Choose one of these methods to exchange the Installation ID for a Confirmation ID (CID):

  1. Microsoft Product Activation Portal: the official, free option. It is a manual process: sign in, choose product activation, and enter the IID groups.
  2. InstantLicX Telegram bot: a faster paid option. Send the IID to the Telegram bot as text or as an image; you do not need to enter each group manually.
  3. GetCID.xyz: a paid web experience that accepts the IID as text or image. It also offers an API, a WordPress plugin for store integrations, and WhatsApp and Telegram bots.

Using the free Microsoft portal

Open the Microsoft Product Activation Portal, sign in with your Microsoft account, and choose Activate a Microsoft Product.

Microsoft Product Activation Portal search result
Open the official Microsoft Product Activation Portal for the free manual method.

Select Windows, choose the closest matching Windows Server version when it is listed, and continue until the portal requests the Installation ID.

Microsoft Activation Portal product activation selection
Choose the option to activate a Microsoft product.
Windows product selection in Microsoft Activation Portal
Select Windows and the version that matches the server installation.

Paste the complete Installation ID, verify the groups, and submit it.

Microsoft portal Installation ID field
Paste the complete Installation ID and submit it.

If the portal asks how many computers have been installed with this copy and this is a new activation, enter 0.

Microsoft portal number of computers question
For a new activation, enter 0 if the portal asks how many computers use this copy.

8. Enter the Confirmation ID

After the IID is accepted, the selected method returns a Confirmation ID divided into groups.

Confirmation ID generated after submitting Installation ID
Copy the Confirmation ID returned by your selected activation method.

Return to the Windows activation wizard, enter each CID group into its corresponding field, and select Activate Windows.

Windows activation wizard Confirmation ID fields
Enter each Confirmation ID group into its matching field.

9. Confirm that Windows Server is activated

Return to the Activation page and confirm that Windows is activated. You can also open an elevated PowerShell or Command Prompt window and run slmgr /xpr to check the activation state.

Windows activation settings showing Windows is activated
The activation status confirms when Windows Server has been activated successfully.

Troubleshooting

  • Confirm that the server is no longer using an Evaluation edition.
  • Make sure Standard or Datacenter matches the edition covered by the key.
  • Install pending Windows Server updates and restart before trying again.
  • Check that every IID and CID group was copied in the correct order.
  • Use DISM /Online /Get-CurrentEdition and slmgr /dlv when you need detailed edition or licensing information.

Leave a Reply

Your email address will not be published. Required fields are marked *