Windows Server Standard or Datacenter Evaluation issue
Note: This command same for windows Server 2016/2019/2022/2025 standard and Datacenter
If you are running Windows Server 2022 Standard Evaluation and want to convert it to Windows Server 2022 Standard (licensed version), follow these steps:
1. Check Your Current Edition
Run the following command in an elevated Command Prompt (Administrator mode) to verify your current edition:
Open Powershell and run this command.
Command code: DISM /online /Get-CurrentEdition
2. Check Available Target Editions
Command code: DISM /online /Get-TargetEditions
After running this command you will see the output like this :
Target Edition: ServerStandard
Target Edition: ServerDatacenter
3. Convert Evaluation to Standard
Run the following command, replacing XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your valid product key for Windows Server 2022 Standard:
Command code for standard : DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
3.Convert Evaluation to Datacenter:
Command code for Datacenter : DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
4. Restart Your Server
After executing the command, you will need to restart your server.
Command code: shutdown -r -t 0
If all of them not work, then use this one:
For Server Standard : dism /online /Set-Edition:ServerStandard /ProductKey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /AcceptEula
For ServerDatacenter: dism /online /Set-Edition:ServerDatacenter /ProductKey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /AcceptEula