You’ve deployed a new Windows Server 2012 R2 KMS server and completed configuring a KMS host key in the Volume Activation Tools wizard:
You proceed to commit the changes:
… but receive the following error:
The following error has occurred. Please resolve the error and try again.
The reason why this error is thrown is because the default value for the KMS TCP listening port is specified with the value of 0:
To correct the issue, change the value to the default 1688 KMS port as such:
Proceeding to commit the changes will be successful once the port is defined:
Once the wizard completes, ensure that the KMS server is activated properly by executing the following command:
To verify that the VLMCS DNS record is published, use the following command:
nslookup -type=srv _vlmcs._tcp.<yourDomain>.com
If you notice that a VLMCS record is not created, you can either manually create the record as such:
… or configure the proper permissions if you notice an error logged in the applications logs similar to the following:
Log Name: Application
Event ID: 12293
Publishing the Key Management Service (KMS) to DNS in the 'tokiomillennium.com' domain failed.