Skip to content

Windows Licensing

Method 1 — Using Settings (GUI)

  1. Press Win + I to open Settings.

  2. Go to:

    System  Activation
    
  3. Under "Change product key", click Change.

  4. Enter your new Windows Server product key.

  5. Click Next, then follow the on-screen instructions.

  6. Windows will validate the key and activate automatically if it's valid.


Method 2 — Using Command Line (slmgr)

If you prefer using PowerShell or Command Prompt (run as Administrator):

Step 1 — Check Current Activation Status

slmgr /dlv

This shows the current activation info, including edition and license channel.

Step 2 — Uninstall the Existing Product Key

slmgr /upk

This removes the old product key.
(Optional but recommended for a clean swap.)

Step 3 — Install the New Product Key

slmgr /ipk YOUR-NEW-PRODUCT-KEY

Replace YOUR-NEW-PRODUCT-KEY with your actual key.

Step 4 — Activate Windows

slmgr /ato

This forces Windows to attempt activation with Microsoft’s servers.


Method 3 — Using PowerShell (Alternative)

For Windows Server 2016 and later, you can also use:

Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" -Name ProductKey -Value "YOUR-NEW-PRODUCT-KEY"
slmgr /ato

If Activation Fails

  • Make sure your server has internet access.

  • Check if you’re using the correct edition (e.g., Standard vs Datacenter).
    A Standard key won’t activate a Datacenter installation.

  • If you're on a KMS or MAK environment, you may need a KMS host or to reconfigure activation:

    slmgr /skms KMS-SERVER-NAME
    slmgr /ato
    

  • If you’re just swapping one valid Retail/OEM key for another, Method 1 is fastest.

  • If you want a clean license reset (e.g., moving from an old volume key to a retail key), Method 2 is better.