ospp.vbs-命令详解

Global options for ospp.vbs

参数说明
/inpkey:valueInstalls a product key (replaces existing key) with user-provided product key. Value option is required.
/unpkey:valueUninstalls 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:valueInstalls a license with user-provided path of the .xrm-ms license. Value parameter is required.
/dstatusDisplays license information for installed product keys.
/dstatusallDisplays license information for all installed licenses.
/dhistoryacterrDisplays the failure history for MAK/Retail activation.
/dinstidDisplays Installation ID for offline activation.
/actcid:valueActivates product with user-provided Confirmation ID. Value parameter is required.
/rearmResets the licensing status for all installed Office 2013 product keys.
/rearm:valueResets the licensing status for an Office 2013 license with a user-provided SKUID value. Value parameter is required.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 AD-based activation to gain an additional rearm.
/ddescr:valueDisplays the description for a user-provided error code. Value parameter is required.

KMS client options for ospp.vbs

参数说明
/dhistorykmsDisplays KMS client activation history.
/dcmidDisplays KMS client machine ID (CMID).
/sethst:valueSets a KMS host name with a user-provided host name. Value parameter is required.This sets HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServiceName (REG_SZ).
/setprt:valueSets a KMS port with a user-provided port number. Value parameter is required.This sets HKLM\Software\Microsoft\OfficeSoftwareProtectionPlatform\KeyManagementServicePort (REG_SZ).
/remhstRemoves KMS host name (sets port to default).
/cachst:valueAllows or denies KMS host caching. Value parameter is required (TRUE or FALSE).
/actype:value(Windows 8 and newer versions only) Sets volume activation type. Value parameter is required.Values: 1 (for Active Directory-Based), 2 (for KMS). 0 (for both).
/skms-domain:value(Windows 8 and newer versions only) Sets the specific DNS domain in which all KMS SRV records can be found. This setting has no effect if the specific single KMS host is set by the /sethst option. Value parameter is the Fully Qualified Domain Name (FQDN) and is required.
/ckms-domain(Windows 8 and newer versions only) Clears the specific DNS domain in which all KMS SRV records can be found. The specific KMS host is used if it is set by the /sethst option. Otherwise, auto-discovery of the KMS host is used.
example:
office2016VOL  cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

指针不南

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值