57.Office的OSPP.vbs常用命令

安装Office密钥:

1
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH

卸载Office密钥:

1
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /unpkey:6F7TH

设置与清除KMS服务器地址:

1
2
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /sethst:192.168.100.220
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /remhst

激活Office:

1
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /act

查询激活有效期(仅KMS激活有具体剩余天数):

1
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /dstatus

安装VOL许可证(根据版本更改xrm-ms对应文件名即可)

1
2
3
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /inslic:"%PROGRAMFILES%\Microsoft Office\root\Licenses16\ProPlus2021VL_KMS_Client_AE-ppd.xrm-ms"
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /inslic:"%PROGRAMFILES%\Microsoft Office\root\Licenses16\ProPlus2021VL_KMS_Client_AE-ul.xrm-ms"
cscript "%PROGRAMFILES%\Microsoft Office\Office16\OSPP.vbs" /inslic:"%PROGRAMFILES%\Microsoft Office\root\Licenses16\ProPlus2021VL_KMS_Client_AE-ul-oob.xrm-ms"
  • Copyrights © 2023-2024 kukusun