When system administrators install Windows Server 2019, Windows Server 2022, or Windows Server 2025 from an official Microsoft Evaluation ISO, the operating system runs on a 180-day trial timer. Attempting to activate an Evaluation build by simply pasting your Windows Server license key into the Settings GUI triggers the error: "This edition cannot be upgraded" or "The product key you entered didn't work."
Fortunately, you do not need to format or reinstall your server. You can convert your evaluation installation into a fully licensed production server in 3 minutes using Microsoft's built-in DISM.exe utility and a genuine Windows Server product key.
Step 1: Verify Your Current Windows Server Edition
Open an elevated PowerShell or Command Prompt (Run as Administrator) and check your current edition ID:
DISM /online /Get-CurrentEdition
If the output displays ServerStandardEval or ServerDatacenterEval, your server is running the evaluation kernel and must be converted via DISM before it will accept a retail activation key.
Step 2: Check Valid Target Editions
Confirm which production editions your server can upgrade into by running:
DISM /online /Get-TargetEditions
ServerStandardEvalcan convert toServerStandardorServerDatacenter.ServerDatacenterEvalcan convert toServerDatacenter.
Step 3: Run the DISM Edition Conversion Command with Your Product Key
Run the command matching your purchased license key (replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your 25-character key from WindowsKey):
For Windows Server Standard (2019, 2022, or 2025):
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
For Windows Server Datacenter (2019, 2022, or 2025):
DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
Troubleshooting Note (GVLK Step): In rare cases where DISM rejects a retail key directly during the evaluation-to-retail transition, run the DISM command above using Microsoft's public Generic Volume License Key (GVLK) first to strip the
Evalpackage, reboot, and then apply your genuine permanent WindowsKey license key viaslmgr.vbs /ipk YOUR-KEYfollowed byslmgr.vbs /ato.
Step 4: Reboot and Confirm Permanent Activation
Once DISM reaches 100%, press Y to restart the server. After rebooting, verify permanent lifetime licensing:
slmgr.vbs /xpr
A dialog will confirm: "The machine is permanently activated."
Official Windows Server Product Keys (Instant Email Delivery)
- Windows Server 2025 Standard Activation Key — $56.00
- Windows Server 2025 Datacenter Activation Key — $56.00
- Windows Server 2022 Standard Activation Key — $38.00
- Windows Server 2022 Datacenter Activation Key — $38.00
- Windows Server 2019 Standard Activation Key — $38.98
- Windows Server 2019 Datacenter Activation Key — $38.00
- Windows Server 2019 Essentials Activation Key — $35.00



