First run this
DISM /online /Set-Edition:ServerStandard /ProductKey:YourProductKey /AcceptEula
Windows will install package, you need to restart after. And after reboot you will not see that you use a windows server "eval" and will be able to activate Windows (maybe you will need to use troubleshoot activation).