How To Activate Windows Server 2022

How to Activate Windows Server 2022: The Ultimate Step-by-Step Guide

Windows Server 2022 is Microsoft’s most advanced server operating system to date, offering robust security features, hybrid cloud integration, and application platform improvements. However, to unlock its full potential—including automatic updates, security patches, and long-term support—you must activate it properly. An unactivated server will nag you with reminders, restrict personalization options, and (after a grace period) shut down the desktop experience.

This comprehensive guide will walk you through every possible method to activate Windows Server 2022, from standard product key entry to advanced tools like KMS, ADBA, and even automation with PowerShell.


7. Method 5: Active Directory-Based Activation (ADBA)

ADBA is the modern replacement for KMS in domain environments. No minimum activation count required.

Requirements:

  • Windows Server 2012 or later as a domain controller.
  • ADBA role installed.

Steps:

  1. On a domain controller, open Server Manager > Add Roles and Features.
  2. Select Volume Activation Services.
  3. Complete installation.
  4. Open Volume Activation Tools from Administrative Tools.
  5. Choose Active Directory-Based Activation.
  6. Enter the KMS Host key (same as KMS host key).
  7. Click Commit.

Now any domain-joined Windows Server 2022 with a GVLK will automatically activate against Active Directory. No extra network configuration needed.

Check activation on client:

slmgr /ato

Activate using a product key (Retail / MAK)

Use this when you have a valid product key to activate directly against Microsoft’s activation servers.

  1. Set the product key (replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your key):

    • Command Prompt or PowerShell (elevated):
      slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
      
    • Wait for confirmation dialog that the key was installed.
  2. Activate online:

    slmgr.vbs /ato
    
    • If successful, you’ll see a message indicating activation succeeded.
    • Alternatively, you can activate via GUI: Settings > System > Activation, then enter the product key.
  3. Verify activation:

    slmgr.vbs /dlv
    
    • License status should show as "Licensed".

If online activation fails because the server has no internet access, use phone activation:

  • Run:
    slui.exe 4
    
  • Follow the on-screen prompts to select country and call the provided number to obtain an installation ID and activation ID.

c) GVLK (for KMS Client setup)

  • GVLK does not activate the server directly. It tells the server to find a KMS host.
  • To set a GVLK:
slmgr /ipk <GVLK>
  • Then run:
slmgr /ato

GVLK for Windows Server 2022:

  • Standard: VDYBN-27WPP-V4HQT-9VMD4-VMK7H
  • Datacenter: WX4NM-KYWYW-QJJR4-XV3QB-6VM33

Useful slmgr.vbs commands summary

  • Install product key:
    slmgr.vbs /ipk <product-key>
    
  • Activate:
    slmgr.vbs /ato
    
  • Display license information:
    slmgr.vbs /dli
    
  • Display detailed license info:
    slmgr.vbs /dlv
    
  • Set KMS server:
    slmgr.vbs /skms <host>[:port]
    
  • Clear KMS server:
    slmgr.vbs /ckms
    
  • Uninstall product key:
    slmgr.vbs /upk
    
  • Rearm evaluation:
    slmgr.vbs /rearm
    

6. Method 4: Key Management Service (KMS) Activation

KMS is designed for large environments (25+ servers or 50+ clients). A KMS host machine activates clients automatically.

Method 1: Using a MAK Key (Most Common for Single Servers)

MAK = Multiple Activation Key (purchased via Volume Licensing)

  1. Open Command Prompt as Administrator

  2. Install the MAK key:

    slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    

    (Replace X with your actual 25-character MAK key)

  3. Activate online:

    slmgr /ato
    
  4. Verify activation status:

    slmgr /dlv
    

2. Prerequisites Before Activation

Before attempting activation, ensure the following:

  • Administrator privileges – You must be logged in as an administrator.
  • Internet or network connectivity – For online activation (MAK/Retail) or KMS discovery.
  • Correct edition match – The product key must match the installed edition (e.g., Datacenter key for Datacenter OS).
  • System time & date accurate – Incorrect time can break activation.
  • Firewall exceptions – For KMS/ADBA, ensure ports (e.g., TCP 1688) are open.

If you installed an Evaluation version (usually 180-day trial), you cannot activate it directly. You must first convert it to a full version (Standard or Datacenter) using DISM.


Method 3: Convert Evaluation Edition to Licensed

If you installed the 180-day evaluation version:

  1. Check current edition:

    DISM /online /Get-CurrentEdition
    
  2. Convert to full version (Standard or Datacenter): how to activate windows server 2022

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

    Replace ServerStandard with ServerDatacenter if needed.

  3. Restart then activate using Method 1 or 2.