How to Activate Windows Server with a Product Key: How to enter a product key, activate Windows Server, and convert an evaluation installation to a full licensed edition.
This guide shows how to activate Windows Server with a product key, including the common case of converting an evaluation installation to a full licence.
Method 1: Settings
- Open Settings > System > Activation (or Settings > Update & Security > Activation on 2019).
- Select Change product key and enter your key.
- Select Activate.
Method 2: Command line
- Open Command Prompt as administrator.
- Run
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX - Run
slmgr /ato - Check with
slmgr /dlv.
Converting an evaluation edition
If you installed the free evaluation, you must convert it before a retail key will activate:
- Check the edition:
DISM /online /Get-CurrentEdition - See target editions:
DISM /online /Get-TargetEditions - Convert, for example to Standard:
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula - Restart when prompted, then check activation.
For Datacenter use ServerDatacenter. Domain controllers cannot be converted this way; convert before promoting them.
Phone activation
If online activation fails, run slui 4 and use our Get Confirmation ID online tool, see activate by phone.
Need a licence? See Windows Server licences.
FAQs: How to Activate Windows Server with a Product Key
Why does my Windows Server key not work on the evaluation?
Evaluation editions must be converted with DISM before activation.
Can I convert Standard to Datacenter?
Yes, using DISM with a Datacenter key.
Does Windows Server activation need internet?
Online activation does; phone activation works offline.
Further reading
For official guidance, see Microsoft Learn: Windows Server documentation. You may also find these guides useful: Visual Studio 2026 Professional vs Enterprise vs Community and Project 2024 Standard vs Professional: Which Do You Need?.
