Below is the practical steps on how to Upgrade Windows Server Evaluation Edition to Full Edition.
To upgrade to the edition you want, run a PowerShell command to perform the actual edition upgrade. You’ll need, however, a valid serial number to do this.
Run this command:
DISM /online /Set-Edition: /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
So to upgrade from Evaluation to Standard, use this command:
DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
To upgrade from Evaluation to Datacenter, use this command:
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
You’ll get a prompt to reboot the server during which the server will change its edition.
The server will run through the image-conversion process and then restart twice. After the server reboots, you’ll need to reactivate it and enter the key again.