If your Windows Server 2016/2019/2022 Evaluation version you will need to upgrade your edition to Full Version for use the product key for complete the activation successfully.
Please open the PowerShell as Administrator.
If you need “Windows Server Standard” edition you will need to run this command below:
DISM /Online /Set-Edition:ServerStandard /ProductKey:KEY /AcceptEula
You will need to replace “KEY” with your product key.
If you need “Windows Server Datacenter” edition you will need to run this command below:
DISM /Online /Set-Edition:ServerDatacenter /ProductKey: KEY /AcceptEula
You will need to replace “KEY” with your product key.
If you need Windows Server product keys you can purchase from HERE with best price!