当前位置:首页 > IT技术 > Windows编程 > 正文

Win10基础 ospp.vbs 帮助文档
2021-08-05 22:10:44

  •        OS : Windows 10 Version 1809
  •     Office : Microsoft Office 2019
  •        blog : 师万物
  •  typesetting : Markdown

帮助文档截图

osppdoc1.png

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:\myserverlicenses	ail.xrm-ms 'Install license on local computer.
cscript ospp.vbs /inslic:"\myserverwork licensesoffice2016 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.

知识扩展

  • 帮助文档的路径
    C:Program FilesMicrosoft OfficeOffice16

osppdoc2.png

学习推荐


感恩曾经帮助过 师万物 的人。
在日常生活中会用到Windows系统,建议学习简单的使用与配置。
学有余力的话,可以了解Windows、Mac OS和基于Linux的各个发行版本的优劣势,找到适合自身发展的桌面操作系统。
欢迎关注公众号:悟为生心

本文摘自 :https://blog.51cto.com/s

开通会员,享受整站包年服务立即开通 >