自建KMS激活服务器

Windows和Office的激活一直是个麻烦的问题,好在不管是Windows还是Office都是有VL版本,只要搭建一个KMS激活服务器就可以自动激活。

准备工作

1.激活软件使用1111版本的vlmcsd,点击这里下载,解压密码是2017
2.采用安装了64位Debian9的intel CPU的VPS运行vlmcsd。需要特别注意的是,vlmcsd支持多中系统,多种CPU架构,所以必须严格选择符合的版本。

搭建方法

1.使用一键脚本进行安装

  • 在shell中运行
wget --no-check-certificate -O kms.sh https://raw.githubusercontent.com/uselibrary/KMS_Server/master/kms.sh && chmod +x kms.sh && bash kms.sh

如果没有安装wget,需要使用yum install wget -y或apt-get install wget -y安装。 2.手动安装 将刚才下载的文件解压到VPS的任意位置,然后将其转移到/usr/local/文件夹。 由于压缩包是7z格式,所以如果没有安装7z,使用yum install p7zip或者apt-get install p7zip安装。

7z x vlmcsd*.7z && rm vlmcsd*.7z
mv vlmcsd* vlmcsd && mv vlmcsd/ /usr/local/
ln -sv /usr/local/vlmcsd/ /usr/local/KMS/
echo "export PATH=/usr/local/KMS/binaries/Linux/intel/static:\$PATH" > /etc/profile.d/vlmcs.sh
source /etc/profile.d/vlmcs.sh
chmod +x /usr/local/KMS/binaries/Linux/intel/static/*
echo "vlmcsd-x64-musl-static" >> /etc/rc.local
vlmcsd-x64-musl-static

vlmcsd使用的端口是1688,如果端口没有开放请务必开放。如果因为SElinux防护而导致KMS服务器无法工作,可以使用以下命令关闭:

sed -i 's/^SELINUX=.*/#&/;s/^SELINUXTYPE=.*/#&/;/SELINUX=.*/a SELINUX=disabled' /etc/sysconfig/selinux && /usr/sbin/setenforce 0

使用方法

  • 激活Windows 如果你的Windows是VL版本,那么只要在管理员权限的cmd或者powershell中执行下面两个命令就可以了。执行完第一个命令后要等弹出提示窗,期间电脑必须联网。
    slmgr /skms ip    #ip为你VPS的ip地址或者域名
    slmgr /ato
    

如果不是VL版本的,那么需要更换密钥获取你对应版本的KEY,操作如下: 运行以下命令查看系统版本:

wmic os get caption

在文末找到对应的key,在管理员权限的cmd或者powershell中执行下面命令安装key:

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx

然后跟上面说的一样设置kms服务器地址,激活。

激活Office

你安装的Office必须是VOL版本,否则无法激活,可以从msdn.itellyou.cn上下载。Office 2016是Office16,Office 2013是Office15,以此类推。 在管理员权限的cmd或者powershell中执行下面命令,进入32位Office 2016的安装目录:

cd "C:\Program Files (x86)\Microsoft Office\Office16"

在管理员权限的cmd或者powershell中执行下面命令,进入64位Office 2016的安装目录:

cd "C:\Program Files\Microsoft Office\Office16"

在管理员权限的cmd或者powershell中执行下面两个命令。执行完第一个命令后要等待命令行出现反馈提示,期间电脑必须联网。

cscript ospp.vbs /sethst:ip    #ip为你VPS的ip地址或者域名
cscript ospp.vbs /act

如果提示看到successful的字样,那么就是激活成功了,重新打开office就好。

Windows VL密钥对照表

  • Windows Server 2016
操作系统KMS激活序列号
Windows Server 2016 DatacenterCB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 StandardWC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 EssentialsJCKRF-N37P4-C2D82-9YXRT-4M63B
  • Windows 10
操作系统KMS激活序列号
Windows 10 ProfessionalW269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional NMH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 EnterpriseNPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise NDPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 EducationNW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Windows 10 Enterprise 2015 LTSBWNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Enterprise 2015 LTSB N2F77B-TNFGY-69QQF-B8YKP-D69TJ
Windows 10 Enterprise 2016 LTSBDCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 Enterprise 2016 LTSB NQFFDN-GRT3P-VKWWX-X7T3R-8B639
  • Windows Server 2012 R2 和 Windows 8.1
操作系统KMS激活序列号
Windows 8.1 ProfessionalGCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows 8.1 Professional NHMCNV-VVBFX-7HMBH-CTY9B-B4FXY
Windows 8.1 EnterpriseMHF9N-XY6XB-WVXMC-BTDCT-MKKG7
Windows 8.1 Enterprise NTT4HM-HN7YT-62K67-RGRQJ-JFFXW
Windows Server 2012 R2 Server StandardD2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2012 R2 DatacenterW3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
Windows Server 2012 R2 EssentialsKNC87-3J2TX-XB4WP-VCPJV-M4FWM
  • Windows Server 2012 和 Windows 8
操作系统KMS激活序列号
Windows 8 ProfessionalNG4HW-VH26C-733KW-K6F98-J8CK4
Windows 8 Professional NXCVCF-2NXM9-723PB-MHCB7-2RYQQ
Windows 8 Enterprise32JNW-9KQ84-P47T8-D8GGY-CWCK7
Windows 8 Enterprise NJMNMF-RHW7P-DMY6X-RF3DR-X2BQT
Windows Server 2012BN3D2-R7TKB-3YPBD-8DRP2-27GG4
Windows Server 2012 N8N2M2-HWPGY-7PGT9-HGDD8-GVGGY
Windows Server 2012 Single Language2WN2H-YGCQR-KFX6K-CD6TF-84YXQ
Windows Server 2012 Country Specific4K36P-JN4VD-GDC6V-KDT89-DYFKP
Windows Server 2012 Server StandardXC9B7-NBPP2-83J2H-RHMBY-92BT4
Windows Server 2012 MultiPoint StandardHM7DN-YVMH3-46JC3-XYTG7-CYQJJ
Windows Server 2012 MultiPoint PremiumXNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G
Windows Server 2012 Datacenter48HP8-DN98B-MYWDG-T2DCC-8W83P
  • Windows 7 and Windows Server 2008 R2
操作系统KMS激活序列号
Windows 7 ProfessionalFJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Professional NMRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 Professional EW82YF-2Q76Y-63HXB-FGJG9-GF7QX
Windows 7 Enterprise33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 Enterprise NYDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 Enterprise EC29WB-22CC8-VJ326-GHFJW-H9DH4
Windows Server 2008 R2 Web6TPJF-RBVHG-WBW2R-86QPH-6RTM4
Windows Server 2008 R2 HPC editionTT8MH-CG224-D3D7Q-498W2-9QCTX
Windows Server 2008 R2 StandardYC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 R2 Enterprise489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 Datacenter74YFP-3QFB3-KQT8W-PMXWJ-7M648
Windows Server 2008 R2 for Itanium-based SystemsGT63C-RJFQ3-4GMB6-BRFB9-CB83V
  • Windows Vista and Windows Server 2008
操作系统KMS激活序列号
Windows Vista BusinessYFKBB-PQJJV-G996G-VWGXY-2V3X8
Windows Vista Business NHMBQG-8H2RH-C77VX-27R82-VMQBT
Windows Vista EnterpriseVKK3X-68KWM-X2YGT-QR4M6-4BWMV
Windows Vista Enterprise NVTC42-BM838-43QHV-84HX6-XJXKV
Windows Web Server 2008WYR28-R7TFJ-3X2YQ-YCY4H-M249D
Windows Server 2008 StandardTM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Standard without Hyper-VW7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
Windows Server 2008 EnterpriseYQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 Enterprise without Hyper-V39BXF-X8Q23-P2WWT-38T2F-G3FPG
Windows Server 2008 HPCRCTX3-KWVHP-BR6TB-RB6DM-6X7HP
Windows Server 2008 Datacenter7M67G-PC374-GR742-YH8V4-TCBY3
Windows Server 2008 Datacenter without Hyper-V22XQ2-VRXRG-P8D42-K34TD-G3QQC
Windows Server 2008 for Itanium-Based Systems4DWFP-JF3DJ-B7DTH-78FJB-PDRHK

打赏一个呗

取消

感谢您的支持,我会继续努力的!🤝

让我们一起加油,一起奋斗!💪

扫码支持
扫码支持
扫码打赏,您说多少就多少,请确认账号信息哦!

支付宝🆔:yanhui5858vip

微信🆔:SINAVIO¹⁸⁶₀₀₂₆⁰³⁵⁹

打开相对的扫一扫,即可进行扫码打赏哦,请确认账号信息哦!