We help IT Professionals succeed at work.

Can't license server 2012

Hi, I built a server in a KMS license environment and then moved it to a DMZ, so it needs to be activated by phone.

I've got a MAK code, which has been used all over the estate, and i've used:

slmgr -upk (to remove the kms links)
slmgr -ipk <mak> (to add the new key)

and it says it's loaded successfully but when I run slui /4 it says Access Denied, contact your administrator. (Hi!) and when i run slui it asks me for a key.  If I use the same key, as before it says This key didn't work, please check it and try again or try a different key.

I get this in event viewer (googling now) - License Activation (slui.exe) failed with the following error code:
hr=0xC004F074


Any tips?
Comment
Watch Question

Philip ElderTechnical Architect - HA/Compute/Storage
Commented:
slmgr -ipk AAAAA-BBBBB-11111-22222-CCCCC -ato

That should do it.
Top Expert 2013
Commented:
I have seen issues when you get the "This key didn't work, please check it and try again or try a different key." that the system thinks you have the wrong version for that key.

You can check the current server version using:
DISM /online /Get-CurrentEdition

Then see what server versions it can be upgraded (switched) to:
DISM.exe /Online /Get-TargetEditions

If for example it returns eval version and server standard is an option, you can apply, add the key, and activate, with:
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Note: this does not work on Domain controllers, but you could at least compare options with the first 2 DISM commands to see if a problem may exist.  
More information on this topic can be found in the following links:
https://blogs.technet.microsoft.com/blainbar/2013/03/06/article-converting-evaluation-versions-of-windows-server-2012-to-full-licensed-versions-with-valid-product-keys/
https://technet.microsoft.com/en-us/library/hh824821.aspx
kevinhsiehNetwork Engineer

Commented:
I open up the port to the KMS server through the DMZ so my servers can still activate.
Thanks very much for your comments, they were very helpful in figuring out what the actual problem was.

#1 When you removed the key with slmgr -upk, you need to reboot after.  To my shame, I missed this step.
#2 I was given a KMS client key instead of a MAK key.

Author

Commented:
Had to contact MS.