Office 2016 Client Software License Management Tool

时间:2020-05-22 ┊ 阅读:538 次 ┊ 标签: 分享 , 系统 , 命令

Office 2016 Client Software License Management Tool

Usage

cscript ospp.vbs /Option:Value ComputerName User Password

 ComputerName: Name of remote computer. If acomputer name is not passed local computer is used.


User: Account with required privilege on remote computer. 


Password: Password for the account. If a User account and password are notpassed current credentials are used.


Value: Required for outlined options. 

Global /Options

Description

/act

Activate installedOffice product keys.

/inpkey:value

Install a product key(replaces existing key) with user-provided product key. Value parameterapplies.

/unpkey:value

Uninstall an installedproduct key with user-provided partial product key (as displayed by the /dstatus option). Valueparameter applies.

/inslic:value

Install a license withuser-provided path to the .xrm-ms license. Value parameterapplies.

/dstatus

Display license information for installed product keys.

/dstatusall

Display license information for installed licenses.

/dhistoryacterr

Display MAK/Retailactivation failure history.

/dinstid

Displayinstallation ID for offline activation.

/actcid:value

Activate product withuser-provided confirmation ID.Value parameter applies.

/rearm

Reset the licensing statusfor all installed Office product keys.

/rearm:value

Reset the licensingstatus for an Office license with user provided SKUID value (as displayed bythe /dstatus opton). Value parameterapplies.

/ddescr:value

Display thedescription for a user-provided error code. Value parameter applies.

KMS client /Options

Description

/dhistorykms

Display KMS clientactivation history.

/dcmid

Display KMS client machineID (CMID).

/sethst:value

Set a KMS host namewith user-provided host name. Valueparameter applies.

/setprt:value

Set a KMS port withuser-provided port number. Valueparameter applies.

/remhst

RemoveKMS host name (sets port to default).

/cachst:value

Permit or deny KMS host caching. Value parameter applies (TRUE or FALSE).

/actype:value

Set volume activation type. Value parameter applies. (Windows 8 and above support only)

Values: 1 (for AD) or 2 (for KMS) or 3 (for Token) or 0 (forall).

/skms-domain:value

Set the specific DNS domain in which all KMS SRV records can befound. This setting has no effect if the specific single KMS host is set via/sethst option. Value parameter applies. (Windows 8 and above support only)

Value:FQDN

/ckms-domain

Clear the specific DNS domain in which all KMS SRV records canbe found. The specific KMS host will be used if set via /sethstoption. Otherwise default KMS auto-discovery will be used. (Windows 8 and above support only)

Token /Options

Description

/dtokils

Display installedtoken-based activation issuance licenses.

/rtokil:value

Uninstall an installedtoken-based activation issuance license with user-provided license id (asdisplayed by the /dtokils option). Value parameterapplies.

/stokflag

Set token-basedactivation only flag. (Windows 7 support only)

/ctokflag

Clear token-basedactivation only flag. (Windows 7 support only)

/dtokcerts

Display token-basedactivation certificates.

/tokact:value1:value2

Token activate with a user-providedthumbprint (as displayed by the /dtokcerts option)and a user-provided PIN (optional). Valueparameter applies.

Prior to running ospp.vbs ensure that:

Windows firewall allows WMI traffic on remote computer.

You have or pass credentials with required permissions on remote computer.

Cmd.exe is elevated (right click > Run as administrator).

Sample Usage

cscript ospp.vbs /act 'Activate Office on local computer.

cscript ospp.vbs /act mypc1 'Activate Office on remote computer mypc1 with current credentials.

cscript ospp.vbs /inpkey:MFKXT-F6DT2-THMRV-KDWH2-TCDTC 'Install an Office product key on local computer.

cscript ospp.vbs /inslic:\myserver\licenses\tail.xrm-ms 'Install license on local computer.

cscript ospp.vbs /inslic:"\myserver\work licenses\office2016 tail.xrm-ms" mypc1 'Install license on remote computer mypc1. Note the path is enclosed in "" since the value contains spaces.

cscript ospp.vbs /ddescr:0xC004F009 'Display the description for error code.

cscript ospp.vbs /actype:1 'Set volume activation type to Active Directory only.

/Token only

cscript ospp.vbs /rtokil:4476b20e 'Uninstall an issuance license with license ID.

cscript ospp.vbs /tokact:96DE6755ABE0BC7D398E96C3AA3C7BFE8B565248 'Token activate with thumbprint.

cscript ospp.vbs /tokact:56AE6755AAB0BC7D398E96C3AA3C7BFE8B565256:54344 'Token activate with thumbprint & PIN.

文章评论

添加新评论

温馨提醒:如果您是第一次在本站留言,需要审核后才能显示哦!

相关文章

T480自动关机无法启动(解决办法)

T480自动关机无法启动(解决办法)

周五升级更新后,用一会就关机,还开不了,怎么按开机键也没有反应。 周六折腾一上午,拔电源,断电,20秒复位,把电池都拿下来了。都不行。 下午实在没办法了,给售后打电话让拿去检测一下。 然后拿售后去了,给检测一会没问题,说内存不干净给擦一下好了,开机正常了。 付款50块检测费,开心的拿回家,一...
阅读全文>>
office2016 产品已激活 却同时显示需要激活(解决办法)

office2016 产品已激活 却同时显示需要激活(解决办法)

直接上命令吧: c:\Program Files\Microsoft Office\Office16>cscript.exe ospp.vbs /dstatus Microsoft (R) Windows Script Host Version 5.812 版权所有(C) Microso...
阅读全文>>
好久不弄代码,求急之下改了一本老程序

好久不弄代码,求急之下改了一本老程序

前两天着急情况下改写了一本老程序 嗯,RPG程序 几十年前写的程序 实现的东西很简单,原来画面上展现的一个表,现在需要批量的打印出来给业务看 我需要把所有画面功能隐藏 我直接把原生代码copy到自己lib里 然后把所有和画面相关元素删除 入口参数删除 清理掉所有无用数据文件 清理掉为画面定义的...
阅读全文>>
去除开始菜单ms-resource:appname/text幽灵快捷方式

去除开始菜单ms-resource:appname/text幽灵快捷方式

之前发现电脑菜单出现了这个无效的快捷方式没当回事,后来发现一直在,还没有用。尝试了各种方法,都无法删除掉。 最后终于找到了终极方法: 方法一: 以管理员模式运行PowerShell 然后在PowerShell粘上如下命令并回车: Get-AppxPackage -all Holographi...
阅读全文>>
新电脑T480开始使用,全面进入win10时代

新电脑T480开始使用,全面进入win10时代

今天对于我是个好日子,终于换掉了自己用了10年的T400,尽管升级了内存换了SSD硬盘,但总感觉太老了需要换一台新电脑了。 T480,2k屏,256G SSD+500G机械双硬盘版本。 心情十分美丽,一切正常。拷贝文件进入秒传时代。 全新的win10系统,用一段时间后慢慢开始适应起来,真的可以...
阅读全文>>