Windows Server

⌘K
  1. Home
  2. /
  3. Docs
  4. /
  5. Windows Server
  6. /
  7. Windows Server 2022
  8. /
  9. How do I activate Windows S...

How do I activate Windows Server 2022?

How do I activate Windows Server 2022?

Activate Windows Server 2022 with a valid product code that matches your installed edition. First, check whether you’re using a full installation or an Evaluation version.

Step 1: Check the edition

Open Command Prompt as an administrator and run the following command:

DISM /online /Get-CurrentEdition

Does the edition name include “Eval”? If so, please first read the explanation about Evaluation below.

Step 2: Install your product code

For a proper full installation, use the command below. Replace the sample code with your own product code:

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Wait for the confirmation. Any previously installed code will be replaced. Microsoft recommends restarting the server or the Software Protection service afterward. Schedule this for a convenient time.

Step 3: Start the activation

Run the following command in a command prompt with administrator privileges:

slmgr.vbs /ato

For a Retail or MAK code, Windows will attempt to activate it online; an internet connection is required for this. For a KMS client code, Windows will attempt to access your organization’s activation environment.

Step 4: Check the result

Check the activation status using:

slmgr.vbs /xpr

For more detailed key information, please use:

slmgr.vbs /dlv

I’m using Windows Server 2022 Evaluation

An Evaluation installation must first be converted to a supported full edition. Simply entering the product code through the standard activation process is not sufficient.

Check which editions are available:

DISM /online /Get-TargetEditions

Then follow the genuine Microsoft instructions for edition conversion. Make a backup beforehand and plan for any necessary restarts. An Evaluation server that is a domain controller cannot be converted directly to a full edition.

What if activation fails?

Verify that your product code is for Windows Server 2022 and the correct edition, such as Standard or Datacenter. Save the full error message. Do not reinstall the server immediately.

Need help with activation?

Email your order number, the installed edition, and a screenshot of the full error message with the error code to info@cd-keys.uk, or use the contact page. Please indicate if you are using an evaluation version. Hide your full product code and do not share any passwords.