下载地址:python
git clone https://github.com/ThunderEX/py-kms.gitgit
cd py-kms/github
依赖:服务器
pip install argparseide
运行:server
python server.pyip
WIN客户端:rem
slmgr -skms 192.168.0.81 (py-kms服务器地址)get
slmgr -atoit
查看激活状态:
slmgr.vbs /dlv
OFFICE:
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /sethst:192.168.0.81
cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /sethst:192.168.0.81
///
cd C:\Program Files\Microsoft Office\Office14
cscript ospp.vbs /remhst
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /sethst:192.168.0.81
cscript ospp.vbs /act //激活
cscript ospp.vbs /dstatus //检查激活状态
注:
Office16==Office2016;Office15==Office2013;Office14==Office2010;