Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
背景
Key Management Service (KMS)。目前Windows Server 2008、Windows7和Office 2010都支持以KMS的方式进行激活。
Office软件保护平台脚本(Office Software Protection Platform , ospp.vbs)是Office 2010自身提供的激活管理工具。
准备工作
以管理员权限(run as administrator)打开命令行窗口(command prompt)。
进入ospp.vbs脚本的所在目录
C:\> cd \Program Files\Microsoft Office\Office14
执行ospp.vbs脚本,显示帮助信息
C:\Program Files\Microsoft Office\Office14> cscript ospp.vbs /?
操作过程
显示当前已安装产品密钥的许可证信息。
cscript ospp.vbs /dstatus
激活Office 2010
cscript ospp.vbs /act
排错过程
如果在使用ospp.vbs脚本进行KMS激活的过程中出现错误,可以查看KMS激活历史中的详细信息:
cscript ospp.vbs / dhistorykms
根据显示的KMS激活详细信息,可进行以下方面的排错。
如果知道需要使用的KMS server地址。可以进行指定
cscript ospp.vbs /sethst:kms.mycorp.com
命令中“kms.mycorp.com”是需要使用的KMS server主机名。
如指定的KMS服务器不能正常激活Office2010,可以清除该KMS Server地址,并由DNS Server查询获得KMS Server的地址:
cscript ospp.vbs /remhst
设置KMS client key。Office2010在安装过程中会自动设置使用特定的KMS client key,以便进行KMS激活。
例如,不同版本的Office 2010会使用不同的KMS client key:
Office Professional Plus 2010 VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
Office Standard 2010 V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
Office Home and Business 2010 D6QFG-VBYP2-XQHM7-J97RH-VVRCK
如果当前Office使用的不是KMS client key,在进行KMS激活之前需要手工设置为KMS client key。
cscript ospp.vbs /inpkey: VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
在完成以上某个排错步骤后,可以再次使用“cscript ospp.vbs /act”进行激活,如不成功则继续进行排错过程。
See Also
Troubleshoot volume activation for Office 2010
Office 2010 中配置客户端计算机的工具(ospp.vbs)
--Jack提示,在正确部署了KMS Server的网络环境中,安装Office 2010的过程中会自动调用ospp.vbs脚本进行激活。而手工执行ospp.vbs脚本通常用在不能进行自动激活,需要手工排错的场景。