Windows Licensing
Method 1 — Using Settings (GUI)
-
Press
Win + Ito open Settings. -
Go to:
-
Under "Change product key", click Change.
-
Enter your new Windows Server product key.
-
Click Next, then follow the on-screen instructions.
-
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
This shows the current activation info, including edition and license channel.
Step 2 — Uninstall the Existing Product Key
This removes the old product key.
(Optional but recommended for a clean swap.)
Step 3 — Install the New Product Key
Replace YOUR-NEW-PRODUCT-KEY with your actual key.
Step 4 — Activate Windows
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:
Recommended Approach
-
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.