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:

Any tips?
Barry BeaverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

That should do it.
Rob WilliamsCommented:
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:
kevinhsiehNetwork Engineer Commented:
I open up the port to the KMS server through the DMZ so my servers can still activate.
Barry BeaverAuthor Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Barry BeaverAuthor Commented:
Had to contact MS.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.