自建KMS服务器参考GitHub 项目VLMCSD

项目名称:VLMCSD
项目简介:KMS Emulator in C (Currently runs on Linux, Mac OS, iOS, Windows with or without Cygwin)
项目主页:https://github.com/Wind4/vlmcsd
软件下载:https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz

C盘根目录创建文件夹KMS
使用管理员打开cmd
将binaries.tar\binaries\Windows\intel\里面的所有文件复制到KMS文件夹如果被杀软报毒请将被杀的文件还原
C:\WINDOWS\system32>cd C:\KMS
C:\KMS>netsh advfirewall firewall add rule name=KMS1688 dir=in action=allow protocol=TCP localport=1688
执行命令将 vlmcsd-Windows-x64.exe 设置为NT服务;根据系统的版本选择x64还是x86;
C:\KMS> vlmcsd-Windows-x64.exe -s -l C:\KMS\KMS_Service.log // -s(小写):安装NT服务,-S(大写):删除NT服务,-l:指定输入运行日志;
C:\KMS>sc query state= inactive | findstr /c:“Key Management Server”
C:\KMS>net start “Key Management Server”
CMD命令中输入vlmcs-Windows-x64.exe出现回显 successful 说明连接成功
C:\KMS>vlmcs-Windows-x64.exe

KMS 激活office常用命令
命 令 说 明
cd C:\Program Files\Microsoft Office\Office xx xx每个版本不一样16代表office2016 视情况而定
cscript ospp.vbs /dstatus 显示当前已安装产品密钥的许可证信息
cscript ospp.vbs /dstatusall 显示当前已安装的所有许可证信息
cscript ospp.vbs /unpkey:xxxxx 卸载已安装的产品密钥,取密钥的最后 5 位数
cscript ospp.vbs /inpkey:x5-x5-x5-x5-x5 安装 / 替换产品密钥,和上面的过程刚好相反
cscript ospp.vbs /sethst:xxxxxxxxxxx 设置 KMS 主机名,一般为 IP 地址(网址)
cscript ospp.vbs /remhst 删除 KMS 主机名
cscript ospp.vbs /act 激活 Office
例如:
office 2016 proplus
cd C:\Program Files\Microsoft Office\Office16
cscript ospp.vbs /inpkey:x5-x5-x5-x5-x5
cscript ospp.vbs /sethst:192.168.1.1此地址是搭建KMS服务器地址
cscript ospp.vbs /act
cscript ospp.vbs /dstatus

KMS 激活Windows常用命令
Windows 10 enterprise
slmgr.vbs -upk
slmgr.vbs -ipk x5-x5-x5-x5-x5
slmgr.vbs -skms 192.168.1.1此地址是搭建KMS服务器地址
slmgr.vbs -dlv
slmgr.vbs /ato

Windows Server 2019 Standard
slmgr.vbs -upk
slmgr.vbs -ipk x5-x5-x5-x5-x5
slmgr.vbs -skms 192.168.1.1此地址是搭建KMS服务器地址
slmgr.vbs -dlv
slmgr.vbs /ato

官方公布的KMS密钥
https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys
https://learn.microsoft.com/en-us/deployoffice/vlactivation/gvlks

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值