To activate or convert a Windows Server 2016 Datacenter Evaluation edition to a full licensed version, you must use the Deployment Image Servicing and Management (DISM)

Choose safety. Choose compliance. Choose the official path.

DISM /Online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula