更新于 2024-08-12
#create pid file
vi /var/run/vlmcsd.pid
#create service file
vi /lib/systemd/system/vlmcsd.service
[Unit]
Description=KMS Server By vlmcsd
After=network.target
[Service]
Type=forking
PIDFile=/var/run/vlmcsd.pid
ExecStart=/usr/bin/vlmcsd -L 127.0.0.1:1688 -p /var/run/vlmcsd.pid
ExecStop=/bin/kill -HUP $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start vlmcsd
systemctl status vlmcsd
systemctl enable vlmcsd
slmgr.vbs -upk
slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr.vbs -skms 192.168.111.3
slmgr.vbs -dlv
slmgr.vbs /ato
irm https://massgrave.dev/get | iex
https://massgrave.dev/kms38
irm https://get.activated.win | iex