Last active
April 17, 2023 05:26
-
-
Save anxgang/17b65f1aa8340bacdb9880ad0846df82 to your computer and use it in GitHub Desktop.
建 KMS Server 及 啟用方式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Server端] 使用 Docker 建立 kms 驗證服務 | |
$ docker run -itd -p 1688:1688 --name kms luodaoyi/kms-server | |
# 開機啟動 可補上 | |
$ docker update --restart unless-stopped kms | |
[Client端] 建立 bat 執行檔驗證 | |
xxx.bat | |
------------------------------ | |
echo 啟用 win | |
slmgr /skms kms.luody.info | |
slmgr /ato | |
echo 啟用 office | |
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /sethst:kms.luody.info | |
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /act | |
pause | |
------------------------------- | |
[參考] | |
https://blog.star-chen.com/2018/08/07/Docker-KMS-Windows-Activate/ | |
https://github.com/Mr-xn/kms-server-deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment