Linux VPS搭建KMS激活程序一键脚本

KMS 是什么?

Key Management Service(简称:KMS),这个功能是在 Windows Vista 之后的产品中的一种新型产品激活机制

支持说明

支持 Windows 操作系统(VL) Office 软件(VL)

支持最新的 Windows 10 和 Office 2019

 

为什么要自建 KMS 激活服务?

虽然现在网络上已经涌现了大批的激活工具,但是存在许多不安定因素,例如后门或者病毒等,会造成较大的安全隐患,而自己搭建 Kms 激活服务则可以避免这类问题

Github:https://github.com/dylanbai8/kmspro

一键安装脚本

Debian/Ubuntu/Mint

wget -N --no-check-certificate git.io/k.sh && chmod +x k.sh && bash k.sh debian

CentOS/Redhat/Fedora

wget -N --no-check-certificate git.io/k.sh && chmod +x k.sh && bash k.sh centos

注意:激活程序使用 1688 端口,需要在管理面板及宝塔面板放行 1688 端口;

添加开机自启动 KMS 服务

bash k.sh auto

使用命令

1.    # 启动 KMS 服务
2.    bash k.sh start
3.    # 关闭 KMS 服务
4.    bash k.sh stop
5.    # 重启 KMS 服务
6.    bash k.sh restart
7.    # 卸载 KMS 服务
8.    bash k.sh uninstall
9.    # 查看 KMS 服务运行状态
10.   bash k.sh status

Wndows 激活方法

PC 端以管理员身份运行 CMD(命令提示符)
依次输入以下命令:

slmgr /skms 你服务器的 IP 或者域名
slmgr /ato
slmgr /xpr

Office 激活方法

PC 端以管理员身份运行 CMD(命令提示符)
这里以 Office2016 64 位为例
进入 64 位版本安装目录

cd /d "%ProgramFiles%\Microsoft Office\Office16"

依次输入以下命令:

cscript ospp.vbs /sethst:你服务器的 IP 或域名
cscript ospp.vbs /act
cscript ospp.vbs /dstatus

激活周期为 180 天,到期后如果你的 KMS 服务器还在运行,Windows 将自动进行激活

正文完
 
admin
版权声明:本站原创文章,由 admin 2024-02-09发表,共计951字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。