2019年3月24日 星期日

Microsoft KMS server and Client 設定

Reference:
KMS服務架設
KMS Windows用戶端安裝識別碼
KMS Office用戶端安裝識別碼

Server:
在 Windows 2012 透過 server manager 安裝 Volume Activation Services,並依指示輸入 KMS key 完成步驟即可。

Client:

Windows
slmgr.vbs /ipk <KMS client Key>
slmgr.vbs /skms kms_server:port
slmgr.vbs /ato
slmgr.vbs /dlv

Office
到 office 安裝目錄,ex: C:\Program Files\Microsoft Office\Office16\
cscript ospp.vbs /sethst:kms_server
cscript ospp.vbs /setprt:port
cscript ospp.vbs /act


Office 2016:
if exist "C:\Program Files\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office16"
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms"
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /sethst:kms_server
cscript ospp.vbs /act
 
Visio 2016:
if exist "C:\Program Files\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office16"
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms"
cscript ospp.vbs /inpkey:PD3PC-RHNGV-FXJ29-8JK7D-RJRJK
cscript ospp.vbs /sethst:kms_server
cscript ospp.vbs /act

Project 2016:
if exist "C:\Program Files\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office16"
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
cscript ospp.vbs /inslic:"..\root\Licenses16\ProjectProVL_KMS_Client-ppd.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\ProjectProVL_KMS_Client-ul.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\ProjectProVL_KMS_Client-ul-oob.xrm-ms"
cscript ospp.vbs /inpkey:YG9NW-3K39V-2T3HJ-93F3Q-G83KT
cscript ospp.vbs /sethst:kms_server
cscript ospp.vbs /act

2021/12/8 update:
使用 KMS 啟用 office 2016後,開啟 office出現 "授權不是正版" 的提示。
解法:
以系統管理員權限開啟 命令提示字元。
執行 cd "\Program Files\Common Files\microsoft shared\ClickToRun" 
執行 OfficeC2rclient.exe /update user updatetoversion=16.0.13801.20266
等待 office 更新後即可。


沒有留言:

張貼留言