激活windows
我们以激活windows11为案例,使用管理员权限运行CMD或者Powershell执行:
slmgr -upk
slmgr -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr -skms 你的服务器IP:1688
slmgr -ato
slmgr -dlv
此处的XXXXX-XXXXX-XXXXX-XXXXX-XXXXX替换成在微软官网提供的KMS激活密钥:
https://learn.microsoft.com/zh-cn/windows-server/get-started/kms-client-activation-keys
激活Office
cd \Program Files\Microsoft Office\Office16
cscript ospp.vbs /sethst:你的服务器IP
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
cscript ospp.vbs /act
cscript ospp.vbs /dstatusall
KMS秘钥获取渠道
Windows: https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys
Office 2013: https://technet.microsoft.com/en-us/library/dn385360.aspx
Office 2016 & 2019 & 2021: https://technet.microsoft.com/en-us/library/dn385360(v=office.16).aspx
docker run -d -p 1688:1688 --restart=always --name vlmcsd mikolatero/vlmcsd