KMS服务端搭建-Windows激活+Office激活

#https://github.com/Wind4/vlmcsd
#https://github.com/dakkidaze/one-key-kms
#https://lolico.moe/tutorial/linux-kms-server.html

git clone https://github.com/dakkidaze/one-key-kms.git
cd one-key-kms
chmod 777 one-key-kms-centos.sh
./one-key-kms-centos.sh
./kms.sh start
firewall-cmd --add-port=1688/{tcp,udp}
firewall-cmd --add-port=1688/{tcp,udp} --permanent
#新建bat文件 Windows激活命令
cd /d "%SystemRoot%\system32"
slmgr /skms *.*.*.*
slmgr /ato
slmgr /xpr

#office激活命令(以下并没有尝试可能会有错误)
cd /d "%ProgramFiles%\Microsoft Office\Office16"
cscript ospp.vbs /sethst:*.*.*.*
cscript ospp.vbs /act

#然后双击运行