How to discover Office and Windows KMS hosts and remove unauthorized instances - Microsoft 365 Apps (2024)

  • Article
  • Applies to:
    Office 2010

This article was written by Eric Ellis, Senior Support Escalation Engineer.

When you troubleshoot KMS configuration and activation issues, you may find unexpected Windows or Office KMS hosts in their environment. This article describes how to discover Office and Windows KMS hosts through DNS, and how to remove unauthorized KMS hosts.

Note

The following steps are similar in Office KMS 2010, 2013, 2016, and 2019.

Discover Office and Windows KMS hosts through DNS

By default, Windows and Office clients discover KMS hosts through DNS and a related _vlmcs SRV record. To determine whether a KMS client can locate a KMS host or whether unwanted KMS hosts exist on the network, run a command similar to the following:

nslookup -type=srv _vlmcs._tcp >%temp%\kms.txt

Review the kms.txt file, and it should contain one or more entries similar to the following:

_vlmcs._tcp.contoso.com SRV service location: priority = 0 weight = 0 port = 1688 svr hostname = kms-server.contoso.com |

Running this nslookup command frequently reveals _vlmcs SRV entries that are tied to unauthorized Windows or Office KMS hosts.

Remove unauthorized Windows KMS hosts

In many cases, Windows KMS hosts may be unintentionally set up by users who mistakenly entered a KMS host product key, instead of a Windows client product key. To resolve this issue, follow these steps on the computer(s) in question, replace the KMS product key and convert it to a KMS or MAK client:

  1. Open an elevated command prompt.

  2. Run cscript slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx, where xxxxx-xxxxx-xxxxx-xxxxx-xxxxx is Windows product key (there should be 25 numbers).

  3. To prevent instability in the license service, restart the system or the Software Protection Service. To restart the Software Protection Service, run the following commands:

    net stop sppsvcnet start sppsvc
  4. Run the following command to display the license information for the installed and active Windows edition:

    cscript slmgr.vbs /dli

  5. In DNS Manager, locate the appropriate forward lookup zone, and then delete the _vlmcs SRV records that exist for each computer which is not to serve as a Windows KMS host.

For more information, see the following articles:

  • Slmgr.vbs Options
  • Deploying KMS Activation

Remove unauthorized Office KMS hosts

It's not common to create an Office KMS host unintentionally, because setting up an Office KMS requires a specific product key and the installation of the Microsoft Office 2010 KMS Host License Pack.

To determine whether a computer has the Office 2010 KMS Host License Pack installed and has an active Office KMS host, run the following command:

cscript slmgr.vbs /dlv bfe7a195-4f8f-4f0b-a622-cf13c7d16864

The output of a computer which has the Office 2010 KMS Host License Pack installed resembles the following. In the following example, key items are Partial Product Key: XXXXX and License Status: Licensed. These items indicate that the Office 2010 KMS host key is successfully installed and activated. To pull all the products installed, including all Office KMS host installations, run the following command:

cscript slmgr.vbs /dlv All >C:\<path>\KMSInfo.txt

In this command, <path> equals where you want to write the output. In this file, search for Office and find all the instances for the Office KMS host installations. If you only want to pull specific Office KMS information, replace the Activation ID that is mentioned earlier in the command (bfe7a195-4f8f-4f0b-a622-cf13c7d16864) with the Activation ID for Office 2013, 2016, or 2019. An example of the output resembles the following:

Name: Microsoft Office 2010, KMSHost editionDescription: Microsoft Office 2010 KMS, VOLUME_KMS channelActivation ID: bfe7a195-4f8f-4f0b-a622-cf13c7d16864Application ID: 59a52881-a989-479d-xxxx-xxxxxxxxxxExtended PID: Installation ID: Processor Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88342Machine Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88343Use License URL: https://go.microsoft.com/fwlink/p/?LinkID=88345Product Key Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88344Partial Product Key: XXXXXLicense Status: LicensedRemaining Windows rearm count: 1Trusted time:Key Management Service is enabled on this computerCurrent count: 0Listening on Port: 1688DNS publishing enabledKMS priority: Normal

Then, follow these steps to remove an Office KMS host in your environment:

  1. Open an elevated command prompt.

  2. Run the following command to uninstall Office KMS host product key:

    cscript slmgr.vbs /upk bfe7a195-4f8f-4f0b-a622-cf13c7d16864

    Warning

    If the command is run without the Office activation ID (bfe7a195-4f8f-4f0b-a622-cf13c7d16864), all installed product keys are uninstalled, including those for Windows.

  3. Run the following command again to check the status of the Office KMS host:

    cscript slmgr.vbs /dlv bfe7a195-4f8f-4f0b-a622-cf13c7d16864

  4. If the Office KMS host product key is removed, the output resembles the following. The key items are This license is not in use and License Status: Unlicensed.

    Name: Microsoft Office 2010, KMSHost editionDescription: Microsoft Office 2010 KMS, VOLUME_KMS channelActivation ID: bfe7a195-4f8f-4f0b-a622-cf13c7d16864Application ID: 59a52881-a989-479d-xxxx-xxxxxxxxxxExtended PID: Installation ID: Processor Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88342Machine Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88343Use License URL: https://go.microsoft.com/fwlink/?LinkID=88345Product Key Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88344This license is not in use.License Status: UnlicensedRemaining Windows rearm count: 1Trusted time: 
  5. In DNS Manager, locate the appropriate forward lookup zone, and then delete the _vlmcs SRV records that exist for each computer which is not to serve as an Office KMS host.

For more information, see the following articles:

  • KMS activation of Office 2013
  • Troubleshoot volume activation for Office 2013
  • KMS Activation of Office 2016/2019
How to discover Office and Windows KMS hosts and remove unauthorized instances - Microsoft 365 Apps (2024)

FAQs

How to remove KMS activation from Microsoft Office? ›

Open the Start menu - Settings - Apps, enter the name of the software with "KMS" or similar in the search box in the list of apps, and click the software name in the search results to uninstall it.

How to find kms host? ›

To find your KMS (Key Management Server) server, you can follow these steps:
  1. Open a command prompt on your Windows computer.
  2. Run the following command: nslookup -type=srv _vlmcs._tcp. ...
  3. Review the output of the command.

How to check which KMS server is being used? ›

Here are the steps to find your KMS server:
  1. Open a Command Prompt window with administrative privileges. ...
  2. Type the following command and press Enter:slmgr /dlvThis will open the Software Licensing Management Tool (slmgr), which displays detailed information about the current licensing status of Windows.
Apr 15, 2023

How to remove kms host? ›

Step by Step Guide:
  1. Identify the activation ID by running this cmd: Slmgr/dlv.
  2. Uninstall the KMS host key first by running CMD: Slmgr/upk < activation ID>
  3. Then, install the default kms key by running the following command: slmgr /ipk <KMS Client Setup Key>
  4. Delete the record from the DNS:
  5. The KMS server is uninstalled.
Apr 7, 2022

Can I delete kms after activation? ›

Because it is destructive and potentially dangerous to delete a KMS key, AWS KMS requires you to set a waiting period of 7 – 30 days. The default waiting period is 30 days.

How do I force Office to activate KMS? ›

How To Activate Microsoft Office with KMS?
  1. Step 1: Install Microsoft Office. ...
  2. Step 2: Get a KMS Host Key. ...
  3. Step 3: Set Up a KMS Host Server. ...
  4. Step 4: Configure the KMS Host. ...
  5. Step 5: Activate Office Clients. ...
  6. Step 6: Verify Activation.
Jan 14, 2024

What is the command to get KMS server details? ›

Finding the KMS Server on your network is fairly easy. On a Windows 2008 R2 Server or Windows 7 client, run “slmgr. vbs /dlv” on the server and it should return the name of the KMS Server.

How to find KMS server in registry? ›

The primary method of discovery is to search for a registry value “KeyManagementServiceListeningPort” in the following registry key: “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform” If your KMS is not getting discovered – you can add that registry value. The default is REG_SZ with “1688”

Where are KMS keys stored? ›

AWS managed KMS keys that are created on your behalf by other AWS services to encrypt your data are always generated and stored in the AWS KMS default key store.

How to check if Windows is activated with KMS? ›

On the KMS host, open the event log and confirm that DNS publishing is successful. The /ato command causes the operating system to attempt activation by using whichever key is installed in the operating system. The response should show the license state and detailed Windows version information.

How to test if KMS is working? ›

When you're examining the KMS host during troubleshooting, there are two areas you should look at:
  1. Check the status of the host software license service using the slmgr. vbs command in a command-line prompt.
  2. Check the Event Viewer for events related to licensing or activation.
Sep 19, 2023

How do I remove old KMS server from DNS? ›

To do this, open the console, expand the Forward Lookup Zones folder, and then locate the zone that contains the _vlmcs. _tcp record. Right-click the record and select Delete. This will remove the record from the DNS server.

How to find KMS server in DNS? ›

To check your DNS for KMS servers: Open DNS console and expand _tcp node under the domain.com. Verify that there a record _VLMCS.

Where can I find KMS host key? ›

To get the KMS key, sign in to the Volume Licensing Service Center (VLSC) and download the KMS key for each product and version of Office that you want KMS to activate.

How do I delete KMS alias immediately? ›

Delete an alias (AWS KMS API)

To delete an alias, use the DeleteAlias operation. This operation deletes one alias at a time.

How do I remove Microsoft Office activation? ›

There is no way to deactivate Office Home & Student, Office Home & Business, Office Professional, or individual Office apps. Instead, you must reinstall and activate using the process described in Activate after reinstalling Office. To uninstall Office, see Uninstall Office from a PC or Uninstall Office for Mac.

Is KMS activation permanent? ›

The KMS only counts unique connections from the past 30 days, and only stores the 50 most recent contacts. KMS activations are valid for 180 days, a period known as the activation validity interval.

How do I disable KMS key management service? ›

Enabling and disabling KMS keys (console)
  1. To change the AWS Region, use the Region selector in the upper-right corner of the page.
  2. In the navigation pane, choose Customer managed keys.
  3. Choose the check box for the KMS keys that you want to enable or disable.
  4. To enable a KMS key, choose Key actions, Enable.

Top Articles
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 5967

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.