Run Cmd as an administrator
cscript c:\windows\system32\slmgr.vbs /ipk (put key in here)
OS should activate
2016
run slui
----------------
To activate your Windows Server:
1. Enter key via GUI or run the command: slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
To get the available editions:
1. Open an elevated command prompt.
2. Run the following command: DISM.exe /Online /Get-TargetEditions
To set your Windows Server to a higher edition:
1. Run the following command: DISM.exe /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
(Use key from table below if this is a MAK/Volume license key)
Switch to datacenter
DISM /online /Set-Edition:ServerDatacenter /ProductKey:key /AcceptEula