How to Activate Windows Server and Convert an Evaluation Edition

Windows Server is often installed from an evaluation image for testing, then moved into production. Instead of reinstalling, you can convert the evaluation edition to a fully licensed version and activate it. This guide covers activation of retail and volume editions and the DISM conversion process.
Understand the Evaluation Period
Windows Server evaluation editions run fully featured for 180 days. Administrators can extend the period a limited number of times with slmgr /rearm, but the evaluation is meant for testing. When it expires, the server shows warnings and may shut down periodically, so plan the conversion before the deadline.
Check the remaining time with: slmgr /dlv
Activate a Licensed Windows Server Installation
If the server is already a licensed edition, activation is straightforward:
- Open an elevated Command Prompt or PowerShell.
- Install the key:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX - Activate online:
slmgr /ato - Confirm:
slmgr /xpr
On servers with Desktop Experience, you can also use Settings → System → Activation. Volume-licensed servers usually activate automatically through the organization’s KMS host or Active Directory-Based Activation.
Convert Evaluation to a Licensed Edition with DISM
Step 1: Check the Current Edition
DISM /online /Get-CurrentEdition
An evaluation installation shows a name such as ServerStandardEval or ServerDatacenterEval.
Step 2: List Available Target Editions
DISM /online /Get-TargetEditions
This shows which editions you can convert to, such as ServerStandard or ServerDatacenter.
Step 3: Run the Conversion
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
Replace the edition name and key with your own. The process can take several minutes and requires one or more restarts.
Step 4: Activate
After the restart, run slmgr /ato if the server doesn’t activate automatically, and confirm with slmgr /dli.
Important Considerations
- Domain controllers: in many Windows Server versions, an evaluation server promoted to a domain controller cannot be converted directly. Check Microsoft’s documentation for your version; you may need to demote it first.
- Backups: take a full backup or snapshot before conversion.
- Licensing model: Windows Server is licensed per physical core with client access licenses (CALs). Make sure your purchase covers the hardware.
- Standard vs Datacenter: Datacenter includes unlimited virtualization rights on the licensed host, while Standard covers two virtual machines per fully licensed host.
Activating Server Core Installations
Server Core has no graphical Settings app, but activation works the same way through the command line. You can also launch sconfig, the text-based configuration menu, and choose the option for Windows activation to view the license status, install a product key or activate online. For remote servers, run slmgr against another machine by adding its name and credentials, for example slmgr server01 admin password /dli, or use PowerShell remoting.
Common Activation Errors on Servers
- 0xC004F069: the key does not match the installed edition. Confirm the edition with DISM and use the matching key.
- 0xC004F074: the server is configured for KMS but cannot reach a host. Check DNS and port 1688.
- 0xC004C008: a MAK key has reached its activation limit. Request more activations through your licensing portal.
Automatic Virtual Machine Activation (AVMA)
On a Hyper-V host running a licensed Datacenter edition, guest virtual machines can activate automatically using AVMA keys published by Microsoft. This removes the need to manage keys for each VM. The Hyper-V Data Exchange integration service must be enabled in each guest.
Frequently Asked Questions
Can I convert Standard to Datacenter later?
Yes. Use DISM with /Set-Edition:ServerDatacenter and a valid Datacenter key.
What happens if the evaluation expires?
The server displays notifications and may shut down every hour until it is licensed.
Can I use a Windows 11 key on Windows Server?
No. Server and client operating systems use different keys and licenses.
Conclusion
Converting a Windows Server evaluation is a quick DISM command away. Check your current edition, convert with a genuine key, then activate. Plan ahead for domain controllers and licensing requirements to avoid surprises.