用于管理 Office 批量激活的工具Tools to manage volume activation of Office

适用于: _ _Volume版 Office 2019 和 Office 2016,包括 Project 和 VisioApplies to: _ _Volume licensed versions of Office 2019 and Office 2016, including Project and Visio

Office 软件保护平台脚本 (ospp.vbs)、软件许可证管理器脚本 (slmgr.vbs) 和批量激活管理工具 (VAMT) 可以帮助你配置和测试 Office(包括 Project 和 Visio)的批量许可版本。The Office Software Protection Platform script (ospp.vbs), the Software License Manager script (slmgr.vbs), and the Volume Activation Management Tool (VAMT) can help you configure and test volume licensed versions of Office, including Project and Visio. 阅读本文之前,建议你先阅读 Office 批量激活概述使用 MAK 激活 Office 的批量许可版本使用 Active Directory 激活 Office 的批量激活版本Before you read this article, we recommend that you read Overview of volume activation of Office, Activate volume licensed versions of Office by using MAK, and Activate volume licensed versions of Office by using Active Directory.

ospp.vbs 脚本The ospp.vbs script

Office 软件保护平台脚本 (ospp.vbs) 使你能够配置 Office 产品(包括 Project 和 Visio)的批量许可版本。The Office Software Protection Platform script (ospp.vbs) enables you to configure volume licensed versions of Office products, including Project and Visio. 该ospp.vbs脚本位于 Program Files\Microsoft Office\Office16 文件夹中。The ospp.vbs script is located in the Program Files\Microsoft Office\Office16 folder. 如果已在 64 位操作系统上安装了 32 位版本的 Office,请转至 Program Files (x86)\Microsoft Office\Office16 文件夹。If you installed the 32-bit version of Office on a 64-bit operating system, go to the Program Files (x86)\Microsoft Office\Office16 folder.

运行 ospp.vbs 需要 cscript.exe 脚本引擎。若要查看帮助文件,请键入以下命令,然后按 Enter:Running ospp.vbs requires the cscript.exe script engine. To see the Help file, type the following command, and then press ENTER:

cscript ospp.vbs /?cscript ospp.vbs /?

常规语法如下所示:The general syntax is as follows:

cscript ospp.vbs [Option:Value] [ComputerName] [User] [Password]cscript ospp.vbs [Option:Value] [ComputerName] [User] [Password]

Option:指定用于执行以下操作的选项和值:激活产品、安装或卸载产品密钥、安装和显示许可证信息、设置 KMS 主机名和端口,以及删除 KMS 主机名和端口。本节中的表中列出了这些选项和值。Option Specifies the option and value to use to activate a product, install or uninstall a product key, install and display license information, set KMS host name and port, and remove KMS host name and port. The options and values are listed in the tables in this section.

ComputerName:远程计算机的名称。如果不提供计算机名称,则使用本地计算机。ComputerName Name of the remote computer. If a computer name is not provided, the local computer is used.

User:在远程计算机上拥有所需权限的帐户。User Account that has the required permission on the remote computer.

Password:帐户的密码。如果不提供用户帐户和密码,则使用当前凭据。Password Password for the account. If a user account and password are not provided, the current credentials are used.

重要

运行 ospp.vbs 之前,请确保:Before you run the ospp.vbs, ensure that:

  • 如果想要在远程计算机上运行此脚本,Windows 防火墙允许远程计算机上的 Windows Management Instrumentation (WMI) 流量。If you want to run the script on a remote computer, the Windows firewall allows Windows Management Instrumentation (WMI) traffic on the remote computer.
  • 你将使用的用户帐户是在其中运行该脚本的计算机上的管理员组的成员。The user account you will use is a member of the Administrators group on the computer on which you run the script.
  • 从提升的命令提示符运行 ospp.vbs 脚本。You run ospp.vbs script from an elevated command prompt.

ospp.vbs 的全局选项Global options for ospp.vbs

全局选项Global option 说明Description
/act/act
激活已安装的 Office 产品密钥。Activates installed Office product keys.
/inpkey:value/inpkey:value
使用用户提供的产品密钥安装产品密钥(取代现有密钥)。Value 选项为必需。Installs a product key (replaces existing key) with a user-provided product key. Value option is required.
/unpkey:value/unpkey:value
卸载安装的产品密钥(包含要卸载的产品密钥的最后五位数,如 /dstatus 选项显示)。Value 参数必需。Uninstalls an installed product key with the last five digits of the product key to uninstall (as displayed by the /dstatus option). Value parameter is required.
/inslic:value/inslic:value
使用用户提供的 .xrm-ms 许可证路径安装许可证。Value 参数必需。Installs a license with user-provided path of the .xrm-ms license. Value parameter is required.
/dstatus/dstatus
显示已安装产品密钥的许可证信息。Displays license information for installed product keys.
/dstatusall/dstatusall
显示所有已安装许可证的许可证信息。Displays license information for all installed licenses.
/dhistoryacterr/dhistoryacterr
显示 MAK/零售激活的失败历史记录。Displays the failure history for MAK/retail activation.
/dinstid/dinstid
显示用于脱机激活的安装 ID。Displays Installation ID for offline activation.
/actcid:value/actcid:value
使用用户提供的确认 ID 激活产品。Value 参数必需。Activates product with user-provided Confirmation ID. Value parameter is required.
/rearm/rearm
重置所有已安装 Office 产品密钥的许可状态。Resets the licensing status for all installed Office product keys.
/rearm:value/rearm:value
重置具有用户提供的 SKUID 值的 Office 许可证的许可状态。Resets the licensing status for an Office license with a user-provided SKUID value. Value 参数必需。Value parameter is required.

如果重置次数用完并且已通过 KMS 或基于 Active Directory 的激活来激活 Office 以获取额外的重置机会,请将此选项与使用 /dstatus 选项指定的 SKUID 值一起使用。Use this option with the SKUID value specified by using the /dstatus option if you have run out of rearms and have activated Office through KMS or Active Directory-based activation to gain an additional rearm.
/ddescr:value/ddescr:value
显示用户提供的错误代码的说明。Value 参数必需。Displays the description for a user-provided error code. Value parameter is required.

下表介绍了用于配置 KMS 客户端的 ospp.vbs 选项。The following table describes the ospp.vbs options for configuring the KMS client.

ospp.vbs 的 KMS 客户端选项KMS client options for ospp.vbs

KMS 客户端选项KMS client option 说明Description
/dhistorykms/dhistorykms
显示 KMS 客户端激活历史记录。Displays KMS client activation history.
/dcmid/dcmid
显示 KMS 客户端计算机 ID (CMID)。Displays KMS client computer ID (CMID).
/sethst:value/sethst:value
使用用户提供的主机名设置 KMS 主机名。Value 参数为必需。 Sets a KMS host name with a user-provided host name. Value parameter is required.

这将设置 HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServiceName (REG_SZ)This sets HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServiceName (REG_SZ).
/setprt:value/setprt:value
使用用户提供的端口号设置 KMS 端口。默认端口号为 1688。Value 参数为必需。 Sets a KMS port with a user-provided port number. The default port number is 1688. Value parameter is required.

这将设置 HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServicePort (REG_SZ)This sets HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServicePort (REG_SZ).
/remhst/remhst
删除 KMS 主机名并将端口设置为默认值。默认端口为 1688。Removes KMS host name and sets port to default. The default port is 1688.
/cachst:value/cachst:value
允许或拒绝 KMS 主机缓存。Value 参数必需(TRUE 或 FALSE)。Allows or denies KMS host caching. Value parameter is required (TRUE or FALSE).
/actype:value/actype:value
(Windows 8.1 和更高版本仅) 集卷激活类型。(Windows 8.1 and later versions only) Sets volume activation type. Value 参数必需。Value parameter is required.

值:1(表示基于 Active Directory),2(表示 KMS),0(表示二者)。Values: 1 (for Active Directory-based), 2 (for KMS), 0 (for both).
/skms-domain:value/skms-domain:value
(Windows 8.1 和更高版本,) 设置可在其中找到所有 KMS SRV 记录的特定 DNS 域。(Windows 8.1 and later versions only) Sets the specific DNS domain in which all KMS SRV records can be found. 如果 /sethst 选项设置特定的单个 KMS 主机名,此设置将不起作用。This setting has no effect if the specific single KMS host name is set by the /sethst option. Value 参数是 FQDN (完全限定) 且是必需的。Value parameter is the Fully Qualified Domain Name (FQDN) and is required.
/ckms-domain/ckms-domain
(Windows 8.1 和更高版本) 清除可在其中找到所有 KMS SRV 记录的特定 DNS 域。(Windows 8.1 and later versions only) Clears the specific DNS domain in which all KMS SRV records can be found. 如果特定 KMS 主机由 /sethst 选项设置,则使用该主机。The specific KMS host is used if it is set by the /sethst option. 否则,使用 KMS 主机的自动发现。Otherwise, auto-discovery of the KMS host is used.

使用 ospp.vbs 的方案Scenarios that use ospp.vbs

以下方案假定你在提升的命令提示符中运行 ospp.vbs。The following scenarios assume that you are running ospp.vbs in an elevated command prompt.

备注

你所做的任何更改只影响 Office 客户端产品。Any changes that you make affect only the Office client products. 你必须使用本文后面 slmgr.vbs 脚本中所述的 slmgr.vbs 脚本单独配置 Windows 客户端。You have to configure the Windows client separately by using the slmgr.vbs script described in The slmgr.vbs script later in this article.

在远程计算机上将产品密钥更改为 MAK 密钥To change the product key to a MAK key on a remote computer

  1. 如果远程计算机名为 contoso1,请运行以下命令输入产品密钥。此操作假定您在远程计算机上拥有管理员凭据。如果您在远程计算机上的凭据与您的登录名和密码不同,则必须在命令行中键入您的登录名和密码,然后按 Enter:If the remote computer is named contoso1, run the following command to enter the product key. This assumes that you have administrator credentials on the remote computer. If your credentials on the remote computer differ from your logon name and password, you must type your logon name and password at the command line, and then press ENTER:

    cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx contoso1cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx contoso1

  2. 若要激活远程计算机,请键入以下命令,然后按 Enter:To activate the remote computer, type the following command, and then press ENTER:

    cscript ospp.vbs /act contoso1cscript ospp.vbs /act contoso1

诊断 KMS 激活错误To diagnose KMS activation errors

  1. 如果计算机安装了 KMS 客户端密钥,请检查授权状态。为此,请键入以下命令,然后按 Enter:If the computer has the KMS client key installed, check the licensing status. To do this, type the following command, and then press ENTER:

    cscript ospp.vbs /dstatusallcscript ospp.vbs /dstatusall

  2. 若要检查 KMS 激活历史记录,请键入以下命令,然后按 Enter:To check the KMS activation history, type the following command, and then press ENTER:

    cscript ospp.vbs /dhistorykmscscript ospp.vbs /dhistorykms

  3. 若要触发激活,请键入以下命令,然后按 Enter:To trigger activation, type the following command, and then press ENTER:

    cscript ospp.vbs /actcscript ospp.vbs /act

  4. 检查错误消息中是否有错误代码 0xC004F042。如果在通知对话框中看到向用户显示的错误代码,您也可以使用该代码来检查错误消息。为此,请键入以下命令,然后按 Enter:Check the error message for error code 0xC004F042. If in the notification dialog boxes you see an error code that is shown to users, you can also use that code to check the error message. To do this, type the following command, and then press ENTER:

    cscript ospp.vbs /ddescr:0xC004F042cscript ospp.vbs /ddescr:0xC004F042

打开或关闭 KMS 客户端上的 KMS 主机缓存To turn on or off KMS host caching on the KMS client

  1. 在 KMS 客户端计算机上,若要打开缓存,请键入下面的命令,然后按 Enter:On the KMS client computer, to turn caching on, type the following command, and then press ENTER:

    cscript ospp.vbs /cachst:TRUEcscript ospp.vbs /cachst:TRUE

  2. 在 KMS 客户端计算机上,若要关闭缓存,请键入下面的命令,然后按 Enter:On the KMS client computer, to turn caching off, type the following command, and then press ENTER:

    cscript ospp.vbs /cachst:FALSEcscript ospp.vbs /cachst:FALSE

测试 KMS 主机名,然后设置为自动发现To test KMS host name, and then set to auto-discovery

  1. 如果在测试名为 kmstest.contoso.com 的 KMS 主机,并且要在 KMS 客户端中指定该主机,请键入以下命令,然后按 Enter:If you are testing a KMS host named kmstest.contoso.com, and you want to specify it in the KMS client, type the following command, and then press ENTER:

    cscript ospp.vbs /sethst:kmstest.contoso.comcscript ospp.vbs /sethst:kmstest.contoso.com

    备注

    如果更改 KMS 主机上的默认端口,则你必须使用 /setprt 选项运行 ospp.vbsIf you change the default port on the KMS host computer, you must run ospp.vbs with the /setprt option. > 例如:cscript ospp.vbs /setprt:1750> For example: cscript ospp.vbs /setprt:1750

  2. 若要触发激活,请键入以下命令,然后按 Enter:To trigger activation, type the following command, and then press ENTER:

    cscript ospp.vbs /actcscript ospp.vbs /act

  3. 若要检查 KMS 激活历史记录以查看是否成功连接主机,请键入以下命令,然后按 Enter:To check the KMS activation history to see whether the host was successfully contacted, type the following command, and then press ENTER:

    cscript ospp.vbs /dhistorykmscscript ospp.vbs /dhistorykms

  4. 现在,您希望此 KMS 客户端使用域名系统 (DNS) 自动发现生产 KMS 主机。若要移除 KMS 主机名,请键入以下命令,然后按 Enter:Now you want this KMS client to use Domain Name System (DNS) for auto-discovery of the production KMS host. To remove the KMS host name, type the following command, and then press ENTER:

    cscript ospp.vbs /remhstcscript ospp.vbs /remhst

slmgr.vbs 脚本The slmgr.vbs script

软件许可证管理器 (slmgr.vbs) 脚本用于配置和检索 Office KMS 主机和 Windows 主机的批量激活信息。The Software License Manager (slmgr.vbs) script is used to configure and retrieve volume activation information for the Office KMS host and the Windows host. 有关更多信息,请参阅在 Windows 上配置 KMS 主机For more information, see Configuring KMS Hosts for Windows.

您可以在目标计算机上以本地方式运行脚本,或从另一台计算机中以远程方式运行。您必须是管理员才能使用此脚本。如果标准用户运行 slmgr.vbs,则某些许可证数据可能缺失或不正确,并且许多操作将被禁止。You can run the script locally on the target computer or remotely from another computer. You have to be an administrator to use the script. If a standard user runs slmgr.vbs, some license data might be missing or incorrect, and many operations are prohibited.

slmgr.vbs 脚本可以使用基于 Windows 的脚本主机 wscript.exe 或基于命令的脚本主机 cscript.exe,管理员可以指定要使用的脚本引擎。如果未指定脚本引擎,slmgr.vbs 将使用默认脚本引擎 wscript.exe 运行。我们建议使用 cscript.exe 脚本引擎。The slmgr.vbs script can use the Windows-based script host, wscript.exe, or the command-based script host, cscript.exe, and administrators can specify which script engine to use. If no script engine is specified, slmgr.vbs runs by using the default script engine, wscript.exe. We recommend the cscript.exe script engine.

您必须重新启动软件授权服务才能使任何更改生效。若要重新启动软件授权服务,请使用 Microsoft 管理控制台 (MMC) 服务管理单元或运行以下命令:You must restart the Software Licensing Service for any changes to take effect. To restart the Software Licensing Service, use the Microsoft Management Console (MMC) Services snap-in or run the following command:

net stop sppsvc && net start sppsvcnet stop sppsvc && net start sppsvc

slmgr.vbs 脚本需要至少一个参数。如果您运行不带任何参数的脚本,则会显示帮助信息。下表列出了 slmgr.vbs 的命令行选项以及每个选项的说明。该表中的大多数参数都用于配置 KMS 主计算机。不过,参数 /sai/sri 是在 KMS 客户端与 KMS 主计算机联系后才传递给 KMS 客户端。slmgr.vbs 的常规语法如下所示(假定所使用的脚本引擎为 cscript.exe):The slmgr.vbs script requires at least one parameter. If you run the script without any parameters, it displays Help information. The following table lists slmgr.vbs command-line options, and a description of each. Most of the parameters in the table configure the KMS host computer. However, the parameters /sai and /sri are passed to KMS clients after the KMS clients contact the KMS host computer. The general syntax of slmgr.vbs is as follows (assuming you are using the cscript.exe as the script engine):

cscript slmgr.vbs /parametercscript slmgr.vbs /parameter

cscript slmgr.vbs [ComputerName] [User] [Password] [Option]cscript slmgr.vbs [ComputerName] [User] [Password] [Option]

ComputerName :远程计算机的名称。如果您不提供计算机名称,则使用本地计算机。ComputerName Name of the remote computer. If you do not provide a computer name, the local computer is used.

User:远程计算机上具有所需权限的帐户。User Account with required permission on the remote computer.

Password :帐户的密码。如果您不提供用户帐户和密码,则使用当前凭据。Password Password for the account. If you do not provide a user account and password, current credentials are used.

Option:选项显示在下表中。Option Options are shown in the following table.

Slmgr.vbs 命令选项 标准Slmgr.vbs command options — standard

选项Option 说明Description
/ ipk [ProductKey]/ ipk [ProductKey]
为 Windows(默认设置)或由产品密钥标识的其他应用程序安装产品密钥。Installs the product key for Windows (default) or other application identified by the product key.
/ ato [ActivationID]/ ato [ActivationID]
激活 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的 KMS 主机。Activates the KMS host for Windows (default), or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.
/ dti [ActivationID]/ dti [ActivationID]
显示用于 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的 KMS 主计算机的电话激活的安装 ID。Displays the Installation ID that is used for telephone activation of the KMS host computer for Windows (default) or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7. 在电话中输入安装 ID 以接收确认 ID,该 ID 用于使用 /atp 参数激活 KMS 主机。You enter the Installation ID into the telephone to receive the Confirmation ID, which is used for activating the KMS host computer by using the /atp parameter.
/ atp [ConfirmationID][ActivationID]/ atp [ConfirmationID][ActivationID]
收到确认 ID 后,激活 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的 KMS 主机。After the Confirmation ID is received, activates the KMS host for Windows (default) or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.
/ dlv [ActivationID]/ dlv [ActivationID]
显示有关 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的详细许可证信息。Displays detailed license information for Windows (default), or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.

例如,在提升的命令符处运行以下命令,在 C:\windows\system32 文件夹中获取 Office KMS 主机的状态:For example, run the following command at the elevated command prompt, in the C:\windows\system32 folder to get the status of the Office KMS host:

cscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914Ccscript slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C
/ dli [ActivationID]/ dli [ActivationID]
显示有关 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的许可证信息。Displays license information for Windows (default), or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.
/ upk [ActivationID]/ upk [ActivationID]
卸载 Windows(默认设置)或由激活 ID(如果提供)标识的应用程序的产品密钥。Uninstalls the product key for Windows (default) or the application that is identified when its Activation ID is provided. Office 2019 激活 ID 为 70512334-47B4-44DB-A233-BE5EA33B914C,Office 2016 激活 ID 为 98EBFE73-2084-4C97-932C-C0CD1643BEA7。The Office 2019 Activation ID is 70512334-47B4-44DB-A233-BE5EA33B914C, and the Office 2016 Activation ID is 98EBFE73-2084-4C97-932C-C0CD1643BEA7.

警告: 如果打算卸载 Office 产品密钥,并且忘记要输入激活 ID,则所有已安装的产品密钥将被卸载。CAUTION: If you intend to uninstall the product key for Office, for example, and forget to enter the Activation ID, all installed product keys are uninstalled. 这包括 Windows 产品密钥。This includes the product key for Windows.
/ xpr [ActivationID]/ xpr [ActivationID]
显示当前许可证状态的到期日期。Displays the expiration date for the current license state.
/ sprt [PortNumber]/ sprt [PortNumber]
在 KMS 主计算机上设置 TCP 通信端口。此操作会将 PortNumber 替换为要使用的 TCP 端口号。默认设置为 1688Sets the TCP communications port on a KMS host computer. It replaces PortNumber with the TCP port number to use. The default setting is 1688.
/ cdns/ cdns
禁止通过 KMS 主计算机自动发布 DNS。Disables automatic DNS publishing by a KMS host computer.
/ sdns/ sdns
启用通过 KMS 主计算机自动发布 DNS。Enables automatic DNS publishing by the KMS host computer.
/ cpri/ cpri
降低 KMS 主计算机进程的优先级。Lowers the priority of KMS host computer processes.
/ sai [ActivationInterval]/ sai [ActivationInterval]
更改当 KMS 客户端找不到 KMS 主计算机时尝试激活其自身的频率。此操作会将 ActivationInterval 替换为一个分钟数。默认设置为 120 分钟。Changes how often a KMS client attempts to activate itself when it cannot find a KMS host computer. It replaces ActivationInterval with a value expressed in minutes. The default setting is 120 minutes.
/ sri [RenewalInterval]/ sri [RenewalInterval]
更改 KMS 客户端尝试通过联系 KMS 主计算机来续订其激活状态的频率。此操作会将 RenewalInterval 替换为一个分钟数。默认设置为 10080 分钟(7 天)。此设置将替代本地 KMS 客户端设置。Changes how often a KMS client attempts to renew its activation by contacting a KMS host computer. It replaces RenewalInterval with a value expressed in minutes. The default setting is 10080 minutes (7 days). This setting overrides the local KMS client settings.

下表所示为使用基于 Active Directory 激活方法激活 AD DS 林的命令选项。The following table shows the command options for activating an AD DS forest by using Active Directory-based activation.

Slmgr.vbs 命令选项 基于 Active Directory 的激活Slmgr.vbs command options — Active Directory-based activation

选项Option 说明Description
/ ad-activation-online [ProductKey]/ ad-activation-online [ProductKey]
通过用户提供的产品密钥激活 AD DS 林。Activates an AD DS forest through the user-provided product key.
/ ad-activation-apply-get-iid [ProductKey]/ ad-activation-apply-get-iid [ProductKey]
显示用于 AD DS 林的安装 ID。Displays installation ID for AD DS forest.
/ ad-activation-apply-cid [ProductKey][ConfirmationID]/ ad-activation-apply-cid [ProductKey][ConfirmationID]
通过用户提供的产品密钥以及确认 ID 激活 AD DS 林。Activates an AD DS forest through the user-provided product key and the Confirmation ID.

批量激活管理工具 (VAMT)Volume Activation Management Tool (VAMT)

批量激活管理工具 (VAMT) 提供用于管理批量激活的图形用户界面。Volume Activation Management Tool (VAMT) provides a graphical user interface to manage volume activation. 有关 VAMT 的更多信息,请参阅批量激活管理工具 (VAMT) 技术参考For more information about VAMT, see Volume Activation Management Tool (VAMT) Technical Reference.

备注

Office 2019 需要至少 VAMT 3.1。Office 2019 requires at least VAMT 3.1.