Remove KMS host license key from a server that should not be a KMS host.

I came over this message in the event viewer on a server today:

Event 12293: Publishing the Key Management Service (KMS) to DNS in the ‘domain.company.com’ domain failed. Info: 0x80072338

It seems like a KMS host license key has been applied to the server even thou it should not be a KMS host. To verify this I checked the license information using slmgr.vbs:

PS C:\Windows\system32> .\cscript.exe slmgr.vbs /dli
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Name: Windows Server(R), ServerStandard edition
Description: Windows Operating System - Windows Server(R), VOLUME_KMS_R2_B channel
Partial Product Key: XXXXX
License Status: Licensed

Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal

Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0

Yup, that’s an KMS Host license.

So I removed the KMS Host key:

PS C:\Windows\system32> .\cscript.exe slmgr.vbs /upk
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Uninstalled product key successfully.

Now that the key is removed its time to install a default KMS client key. Find the correct key in this document: http://technet.microsoft.com/en-us/library/ff793421.aspx

In this case it is a Windows Server 2008 R2. So the key is YC6KT-GKW9T-YTKYR-T4X34-R7VHC

Install it using slmgr.vbs:

PS C:\Windows\system32> .\cscript.exe slmgr.vbs /ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Installed product key YC6KT-GKW9T-YTKYR-T4X34-R7VHC successfully.

Activate the license:

PS C:\Windows\system32> .\cscript.exe slmgr.vbs /ato
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Activating Windows Server(R), ServerStandard edition (...) ...
Product activated successfully.

 

 Extra

If for some reason the server managed to register itself as a KMS Host at the DNS server you have to remove the entry.

On your Windows DNS server, check if there is registered a _VLMCS record which is pointing to this server. The record should be located here: Forward Lookup Zonez -> domain.company.com -> _tcp

If the _VLMCS record points to the server which should not be a KMS host, change it to point to the real KMS host server.

This entry was posted in Uncategorized, Windows Server and tagged , , , , , , , , , . Bookmark the permalink.

One Response to Remove KMS host license key from a server that should not be a KMS host.

  1. Fastide says:

    Thanks, this solved my problem

Leave a Reply

Your email address will not be published. Required fields are marked *