Also, since it is a MAK key and it should be good for multiple VMs but we are getting the error : "This key is already in use on another device". It has worked only once on another VM. Is there any other command that i need to run apart from the commands which we are currently using to convert the license key from Standard to Datacenter:
Upgrading Microsoft License from Standard to Datacenter
Process is very simple and straightforward, but it requires a restart of the server.
Due to bugs in Windows OS, just entering the new key won't work. First step is to activate it with Datacenter KMS key provided by Microsoft, then change it to MAC key purchased by customer.
On server in questions run following commands:
Dism /online /Set-Edition:ServerDatacenter /AcceptEula /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG
slmgr /ipk <Datacenter MAC key purchased by customer>
slmgr /ato