There are instances where we need to change the Windows Server OS from Evaluation to either Standard/Datacenter. So, in order to do that you need to run a power-shell prompt with Administrative privileges.
To do so, there are only 3 steps.
- To identify the supported editions – DISM /online /Get-TargetEditions
- After identifying the editions, please take a note of the output.
- Then execute the command with the values – DISM /online /Set-Edition:nameoftheedition /ProductKey:productkey /AcceptEula
An example would look like below,
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula