网站菜单

开源的 KMS 激活服务

今天介绍一个开源的 KMS 服务器,可以激活大客户版本的 Windows 和 Office 套件,这种激活方式不需要在系统上安装任何软件,只需要通过 slmgr 设置激活服务器即可,比海鲜市场的 5 块钱激活码靠谱多了。

项目地址:https://github.com/Py-KMS-Organization/py-kms

获取源码

git clone https://github.com/Py-KMS-Organization/py-kms

使用 Supervisor 管理

安装 supervisor (和 Python3)

apt install -y supervisord python3

新增配置文件

[program:pykms]
command=python3 /root/py-kms/pykms_Server.py
autorestart=true
user=root

重启 supervisor 服务

/etc/init.d/supervisor restart

这个时候你会拥有一个可用的 KMS 服务,端口号是 1688,监听在服务器端口上。如果你还运行了 dnsmasq ,可以在 /etc/init.d/dnsmasq.d 增加一个配置文件(kms.conf),创建好后重启 dnsmasq:

srv-host=_vlmcs._tcp,xxx.xxx.xxx.xxx,1688,0,100

这样新安装的 Windows 系统可以就可以通过 DHCP 找到 KMS 服务并且自动激活。

激活 Windows 副本

如果你的 Windows 副本没有自动激活,可以通过命令行(以管理员身份运行)手动激活,序列号见文末。

#卸载现有的序列号
slmgr -upk

#将序列号添加到 Windows 中
slmgr -ipk KEY

#设置 KMS 服务器(你的IP地址)
slmgr -skms xxx.xxx.xxx.xxx

#激活 Windows
slmgr -ato

激活 Office 副本

Office 副本必须安装 VOL (大客户版,批量授权版),然后使用 VOL 的序列号(见文末)

cd C:\\program files\\Microsoft Office\\Office16

#Show Key Status
cscript ospp.vbs /dstatus

#Delete Key
cscript ospp.vps /unpkey:XXXX

#Input Key
cscript ospp.vbs /inpkey:XXXX

cscript ospp.vbs /sethst:xxx.xxx.xxx.xxx

cscript ospp.vbs /act

如果安装的不是 VOL 版本,可以在网上找一些转换工具(支持Retail转Volume License),不同 Office 版本不一样,所以这边就不提供了。

微软官方序列号(VOL)

序列号是微软官方提供的,猛击查看

免费的 KMS 服务器

网上有不少免费的 KMS 激活服务器,最后一个是琐叔提供的,欢迎使用。

  • kms.cangshui.net
  • kms.03k.org
  • skms.netnr.eu.org
  • kms.uncle.ws
显示评论 (0)

文章评论

相关推荐

  • * 暂无相关文章