Invalid lincese after moving VM from one data center to another

May 31, 2017 at 3:02 PMVicent Galiana

Some months ago we had to move our servers from Germany to North Europe and recently windows is asking us to provide a valid product key.

Running the command slmgr.vbs /dlv we could see that the registered KMS machine name was

Apparently, for Nort Europe (at least) the server name must be

To change the licensing server, we have to run the following line in an elevated porwshell console:

iex “$env:windir\system32\cscript.exe $env:windir\system32\slmgr.vbs /skms”

Now we only have to wait a few minute and request a new license with the command:

slmgr.vbs /ato

That's it, as simple as that. Now our servers have a valid license again.

P.S. We are not sure if the cause of the issue is the change of datacenter, but for sure, using the right license server fixed the issue.

Posted in: Azure