下载地址:
git clone https://github.com/ThunderEX/py-kms.git
cd py-kms/
依赖:
pip install argparse
运行:
python server.py
WIN客户端:
slmgr -skms 192.168.0.81 (py-kms服务器地址)
slmgr -ato
查看激活状态:
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;