部署KMS
vlmcsd只是一个单体程序,它的部署方式可以直接运行也可以使用docker部署。
以二进制方式运行
# 永久关闭SELinux
sed -i 's/^SELINUX=.*/#&/;s/^SELINUXTYPE=.*/#&/;/SELINUX=.*/a SELINUX=disabled' /etc/sysconfig/selinux && /usr/sbin/setenforce 0
# 下载程序
# https://github.com/Wind4/vlmcsd/releases
wget https://github.com/Wind4/vlmcsd/releases/download/svn1111/binaries.tar.gz
# 解压文件
tar zxvf binaries.tar.gz
# 创建快捷方式
# ln -sv binaries/Linux/intel/static/vlmcsd-x64-musl-static /usr/local/KMS
mv binaries/Linux/intel/static/vlmcsd-x64-musl-static /usr/local/KMS
# 赋予权限
chmod u+x /usr/local/KMS
# 执行程序
/usr/local/KMS
# 防火墙设置
# Centos 6.x
iptables -I INPUT -p tcp --dport 1688 -j ACCEPT
service iptables save
service iptables restart
# Centos 7.X
firewall-cmd --zone=public --add-port=1688/tcp --permanent
firewall-cmd --reload
firewall-cmd --query-port=1688/tcp
# 开机启动
echo "/usr/local/KMS -l /var/log/kms.log >/dev/null 2>&1" >> /etc/rc.d/rc.local
容器部署
git clone https://gitee.com/Jalena/vlmcsd-docker.git vlmcsd
cd vlmcsd
# Use docker-compose service
docker-compose up -d --build
服务端测试
.\vlmcs-Windows-x64.exe -v -l 8 jalena.bcsytv.com
Request Parameters
==================
Protocol version : 6.0
Client is a virtual machine : No
Licensing status : 2 (OOB grace)
Remaining time (0 = forever) : 43200 minutes
Application ID : 55c92734-d682-4d71-983e-d6ec3f16059f (Windows)
SKU ID (aka Activation ID) : 32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee (Windows 10 Enterprise LTSC 2019)
KMS ID (aka KMS counted ID) : 11b15659-e603-4cf1-9c1f-f0ec01b81888 (Windows 10 2019 (Volume))
Client machine ID : e8b30c4d-0f50-473d-b1bc-0b701d8c7627
Previous client machine ID : 00000000-0000-0000-0000-000000000000
Client request timestamp (UTC) : 2018-12-23 15:45:02
Workstation name : ceo-laptop.windows.es
N count policy (minimum clients): 25
Connecting to 118.24.148.42:1688 ... successful
Performing RPC bind ...
... NDR64 ... BTFN ... NDR32 ... successful
Sending activation request (KMS V6) 1 of 1
Response from KMS server
========================
Size of KMS Response : 260 (0x104)
Protocol version : 6.0
KMS host extended PID : 06401-00206-554-312819-03-5129-9600.0000-3132018
KMS host Hardware ID : 3A1C049600B60076
Client machine ID : e8b30c4d-0f50-473d-b1bc-0b701d8c7627
Client request timestamp (UTC) : 2018-12-23 15:45:02
KMS host current active clients : 50
Renewal interval policy : 10080
Activation interval policy : 120
Windows激活
# 检查是否是vol版本
Slmgr -dli
# 激活
slmgr.vbs -skms jalena.bcsytv.com
slmgr.vbs -ato
slmgr.vbs -dlv
Office激活
# 找到Office安装目录
# 例如Office 2019的目录:C:\Program Files\Microsoft Office\Office16
cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
cd /d "%ProgramFiles%\Microsoft Office\Office16"
# 设置激活服务器并激活
cscript ospp.vbs /sethst:jalena.bcsytv.com
cscript ospp.vbs /act
# 看到<Product activation successful>表示激活成功。
MAS
vlmcsd已经多年未更新了,可以使用如下命令在PowerShell中直接执行,它能激活目前为止所有的Windows及Office,具体介绍可以查看官方说明:https://massgrave.dev/
irm https://get.activated.win | iex
# or
irm https://massgrave.dev/get | iex
文章评论
学习了
@FengBlog yeah~