Windows Activation error 0x8007232A DNS Server failure

I have encountered this error many times:

A problem occurred when Windows tried to activate. Error Code 0x8007232A “DNS Server Failure”

image

Activations errors are explained in the page: https://support.microsoft.com/kb/938450

It seems that the machine cannot locate a KMS server (or in my case that the server has been installed with a “wrong” product key) If you have MSDN subscription you can workaround this problem by setting the product key with this command line:

 

slmgr –ipk <Product-key> (e.g. slmgr -ipk J3X3X-XY3XX-XX3XX-3XXXX-XX3XX)

And then activate the key in the “Control Panel\System and Security\System”

image