To convert a Windows Server evaluation to a full license, open an administrator command prompt, run DISM /online /Set-Edition:ServerStandard /ProductKey:YOUR-KEY /AcceptEula, restart when asked, then run slmgr /ato to activate. You do not need to reinstall, and your roles and data stay in place.
Before you start
- Check the edition. Run
DISM /online /Get-CurrentEdition. An evaluation copy shows an edition that ends with Eval, such as ServerStandardEval. The target edition must match your key: a Standard key converts to Standard, a Datacenter key to Datacenter. - Back up the server. The conversion is routine, but a restore point is cheap.
- Domain controllers. Microsoft does not support converting a domain controller. Demote it, convert the server, then promote it again. Convert member servers directly.
- Version. The key must be for the same Windows Server version. A 2022 evaluation needs a 2022 key.
Step 1: see which editions you can convert to
Open Command Prompt or PowerShell as administrator and run:
DISM /online /Get-TargetEditions
The list shows targets such as ServerStandard and ServerDatacenter. Pick the one that matches your key.
Step 2: convert with your key
Run the command with your own key and the edition name:
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
The process takes several minutes and then asks for a restart. The server restarts, applies the change and restarts again. Do not interrupt it.
Step 3: activate
After the restarts, activate online:
slmgr /ato
Then check the result with slmgr /dlv. It shows the edition, the license channel and the activation status. A retail license reports Retail and Licensed. If the server has no internet, use phone activation with slui 4, which is explained in Windows activation error codes and fixes.
What the evaluation limit means
Evaluation copies run for a trial period, which Microsoft sets to 180 days for recent versions. Near the end, the server shows warnings and restarts automatically at intervals. Converting before the limit avoids these shutdowns. The slmgr /dlv command shows the time remaining.
Errors and fixes
| Message | Likely cause | Fix |
|---|---|---|
| The product key is invalid for this edition | Key and edition do not match | Use the target edition that fits the key |
| 0xC004F050 | Key rejected | Check typing, version and edition |
| Edition conversion is not supported | Domain controller or wrong target | Demote the controller, or choose a listed target |
| Activation fails after the conversion | No access to the activation service | Check the connection, or use phone activation |
For meanings of error codes, see Windows activation error codes and fixes.
After the conversion
Install your remaining licenses. For terminal servers, the next step is How to install RDS CALs on Windows Server. Write down which key belongs to which server so you can show it during a licensing check.
Getting a key
Windows Server 2022 Standard and Windows Server 2019 Standard are sold at Webdigikey as retail licenses. If a key does not activate, we replace it. See Windows Server Standard vs Datacenter before you pick an edition.
Frequently asked questions
Can I convert Standard to Datacenter with this method?
You can use Set-Edition to move to a higher edition if it appears in the target list and you have a matching key.
Will I lose my data or roles?
No. The conversion keeps your roles, features and data. Back up first, as for any change.
Can I use the same key for several servers?
A retail key is for one server. Each server needs its own license.
How do I know the conversion worked?
Run DISM /online /Get-CurrentEdition. The edition no longer ends with Eval, and slmgr /dlv shows a licensed status.
Microsoft, Windows, Office and other product names are trademarks of their respective owners.