自建KMS服务器:激活office和windows

发布于 2021-10-04  1310 次阅读


ospp.vbs脚本在C:\Program Files (x86)\Microsoft Office\Office16中,此目录是office的安装目录

cscript ospp.vbs /sethst:192.168.0.254 ->设置kms激活地址,192.168.0.254是我本地的kms服务器

cscript ospp.vbs /act ->执行激活

PS C:\Program Files (x86)\Microsoft Office\Office16> cscript ospp.vbs /sethst:192.168.0.254
Microsoft (R) Windows Script Host Version 5.812
版权所有(C) Microsoft Corporation。保留所有权利。

---Processing--------------------------
---------------------------------------
Successfully applied setting.
---------------------------------------
---Exiting-----------------------------
PS C:\Program Files (x86)\Microsoft Office\Office16> cscript ospp.vbs /act
Microsoft (R) Windows Script Host Version 5.812
版权所有(C) Microsoft Corporation。保留所有权利。

---Processing--------------------------
---------------------------------------
Installed product key detected - attempting to activate the following product:
SKU ID: 5b5cf08f-b81a-431d-b080-3450d8620565
LICENSE NAME: Office 19, Office19VisioPro2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: 7VCBB
<Product activation successful>
---------------------------------------
Installed product key detected - attempting to activate the following product:
SKU ID: 85dd8b5f-eaa4-4af3-a628-cce9e77c9a03
LICENSE NAME: Office 19, Office19ProPlus2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: 6MWKP
<Product activation successful>
---------------------------------------

显示successful表示成功


欢迎欢迎~热烈欢迎~