如何发现 Office 和 Windows KMS 主机并删除未经授权的实例 您所在的位置:网站首页 未经授权的office怎么激活 如何发现 Office 和 Windows KMS 主机并删除未经授权的实例

如何发现 Office 和 Windows KMS 主机并删除未经授权的实例

2023-08-16 08:26| 来源: 网络整理| 查看: 265

如何通过 DNS 发现 Office 和 Windows KMS 主机并删除未经授权的实例 项目 03/18/2023 适用于: Office 2010

本文由高级支持升级工程师 埃里克·埃利斯撰写。

排查 KMS 配置和激活问题时,可能会在其环境中发现意外的 Windows 或 Office KMS 主机。 本文介绍如何通过 DNS 发现 Office 和 Windows KMS 主机,以及如何删除未经授权的 KMS 主机。

注意

Office KMS 2010、2013、2016 和 2019 中的以下步骤类似。

通过 DNS 发现 Office 和 Windows KMS 主机

默认情况下,Windows 和 Office 客户端通过 DNS 和相关的 _vlmcs SRV 记录发现 KMS 主机。 若要确定 KMS 客户端是否可以找到 KMS 主机或网络上是否存在不需要的 KMS 主机,请运行类似于以下内容的命令:

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

查看 .txt文件的 kms ,它应包含一个或多个类似于以下内容的条目:

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

运行此 nslookup 命令经常会显示 _vlmcs 绑定到未经授权的 Windows 或 Office KMS 主机的 SRV 条目。

删除未经授权的 Windows KMS 主机

在许多情况下,Windows KMS 主机可能由错误地输入 KMS 主机产品密钥而不是 Windows 客户端产品密钥的用户无意中设置。 若要解决此问题,请在计算机上执行以下步骤 () ,替换 KMS 产品密钥并将其转换为 KMS 或 MAK 客户端:

打开提升的命令提示符。

运行 cscript slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,其中 xxxxx-xxxxx-xxxxx-xxxxx-xxxxx 是 Windows 产品密钥 (应有 25 个数字) 。

若要防止许可证服务不稳定,请重启系统或软件保护服务。 若要重启软件保护服务,请运行以下命令:

net stop sppsvc net start sppsvc

运行以下命令以显示已安装和活动 Windows 版本的许可证信息:

cscript slmgr.vbs /dli

在 DNS 管理器中,找到适当的向前查找区域,然后删除每台计算机(不用作 Windows KMS 主机)存在的 _vlmcs SRV 记录。

有关详细信息,请参阅以下文章:

Slmgr.vbs选项 部署 KMS 激活 删除未经授权的 Office KMS 主机

无意中创建 Office KMS 主机并不常见,因为设置 Office KMS 需要特定的产品密钥和 安装 Microsoft Office 2010 KMS 主机许可证包。

若要确定计算机是否安装了 Office 2010 KMS 主机许可证包并具有活动的 Office KMS 主机,请运行以下命令:

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

安装了 Office 2010 KMS 主机许可证包的计算机的输出如下所示。 在下面的示例中,关键项为 部分产品密钥:XXXXX 和 许可证状态:许可。 这些项指示 Office 2010 KMS 主机密钥已成功安装并激活。 若要拉取安装的所有产品(包括所有 Office KMS 主机安装),请运行以下命令:

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

在此命令中, 等于要写入输出的位置。 在此文件中,搜索 Office 并查找 Office KMS 主机安装的所有实例。 如果只想拉取特定的 Office KMS 信息,请将命令 (bfe7a195-4f8f-4f0b-a622-cf13c7d16864) 中前面提到的激活 ID 替换为 Office 2013、2016 或 2019 的激活 ID。 输出示例如下所示:

Name: Microsoft Office 2010, KMSHost edition Description: Microsoft Office 2010 KMS, VOLUME_KMS channel Activation ID: bfe7a195-4f8f-4f0b-a622-cf13c7d16864 Application ID: 59a52881-a989-479d-xxxx-xxxxxxxxxx Extended PID: Installation ID: Processor Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88342 Machine Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88343 Use License URL: https://go.microsoft.com/fwlink/p/?LinkID=88345 Product Key Certificate URL: https://go.microsoft.com/fwlink/p/?LinkID=88344 Partial Product Key: XXXXX License Status: Licensed Remaining Windows rearm count: 1 Trusted time: Key Management Service is enabled on this computer Current count: 0 Listening on Port: 1688 DNS publishing enabled KMS priority: Normal

然后,按照以下步骤删除环境中的 Office KMS 主机:

打开提升的命令提示符。

运行以下命令以卸载 Office KMS 主机产品密钥:

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

警告

如果命令运行时没有 Office 激活 ID (bfe7a195-4f8f-4f0b-a622-cf13c7d16864) ,则将卸载所有已安装的产品密钥,包括适用于 Windows 的产品密钥。

再次运行以下命令以检查 Office KMS 主机的状态:

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

如果删除了 Office KMS 主机产品密钥,则输出类似于以下内容。 关键项目是 此许可证未使用 , 许可证状态为:未授权。

Name: Microsoft Office 2010, KMSHost edition Description: Microsoft Office 2010 KMS, VOLUME_KMS channel Activation ID: bfe7a195-4f8f-4f0b-a622-cf13c7d16864 Application ID: 59a52881-a989-479d-xxxx-xxxxxxxxxx Extended PID: Installation ID: Processor Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88342 Machine Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88343 Use License URL: https://go.microsoft.com/fwlink/?LinkID=88345 Product Key Certificate URL: https://go.microsoft.com/fwlink/?LinkID=88344 This license is not in use. License Status: Unlicensed Remaining Windows rearm count: 1 Trusted time:

在 DNS 管理器中,找到适当的向前查找区域,然后删除每台计算机存在的不用作 Office KMS 主机的 _vlmcs SRV 记录。

有关详细信息,请参阅以下文章:

Office 2013 的 KMS 激活 Office 2013 批量激活疑难解答 Office 2016/2019 的 KMS 激活


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有