ospp.vbs
Install, activate, and manage volume licensed versions of Microsoft Office products. Use
cscriptto run this program in the CLI, orwscriptin the GUI. Note: This command may override, deactivate, and/or remove your current volume of licensed Office product versions, so please proceed cautiously. See also:gethelpcmd-officeactivationscenario. More information: https://learn.microsoft.com/deployoffice/vlactivation/tools-to-manage-volume-activation-of-office.
- Install a product key (Note: It replaces the existing key):
cscript ospp.vbs /inpkey:
- Uninstall an installed product key with the last five digits of the product key:
cscript ospp.vbs /unpkey:
- Set a KMS host name:
cscript ospp.vbs /sethst:
- Set a KMS port:
cscript ospp.vbs /setprt:
- Activate installed Office product keys:
cscript ospp.vbs /act
- Display license information for installed product keys:
cscript ospp.vbs /dstatus
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
