Linux搭建KMS服务器激活你的Windows

可用于激活 windows 10 8.1 8 7 2008 2012等众多版本,这简单几个步骤带你完成


一、自建KMS服务器步骤

wget --no-check-certificate https://cangshui.net/-down/-mytargz/vlmcsd-2018.zipunzip -q vlmcsd-2018.zip -d /usr/local/ln -sv /usr/local/vlmcsd-2018/ /usr/local/KMSecho 'export PATH=/usr/local/KMS/binaries/Linux/intel/static:\$PATH' > /etc/profile.d/vlmcs.shsource /etc/profile.d/vlmcs.shchmod +x /usr/local/KMS/binaries/Linux/intel/static/*echo 'vlmcsd-x64-musl-static' >> /etc/rc.localvlmcsd-x64-musl-static

然后防火墙开放TCP的1688端口

#centos6是(iptables)iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 1688 -j ACCEPTservice iptables saveservice iptables restart#centos7是(firewall)firewall-cmd --permanent --zone=public --add-port=1688/tcpfirewall-cmd --reload

其他系统可以自行百度

然后关闭SELinux

#即时生效并永久关闭SELinux的命令sed -i 's/^SELINUX=.*/#&/;s/^SELINUXTYPE=.*/#&/;/SELINUX=.*/a SELINUX=disabled' /etc/sysconfig/selinux && /usr/sbin/setenforce 0

如果你需要开机启动,请使用者这个shell脚本定时执行(仅适用于使用我写的命令搭建的):

mykms=$(ps -fe|grep vlmcsd-x64-musl-static |grep -v grep)if [[ $mykms = '' ]]then echo 'KMS进程未找到' && cd /usr/local/KMS/binaries/Linux/intel/static && ./vlmcsd-x64-musl-staticelse echo 'KMS进程存在' && exitfi

二、如何使用搭建好的KMS服务器来激活

以windows 10 专业版(Professional)为例,打开powershell(管理员)直接输入下列命令

slmgr.vbs -upkslmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX #注意!!不同系统版本这里的激活码不一样,请往下翻寻找表格!slmgr.vbs -skms kms.cangshui.net #(这是我的kms域名,如果你自己的已搭建好,可以输入你的域名或者ip) slmgr.vbs -atoslmgr.vbs -dlv

注意!不同的系统,这一步中输入的密钥不相同!!!!!!!!!!!!!!!

打个比方,如果你的系统是win7 专业版,那么你应该输入的是:

slmgr.vbs -upkslmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4        #注意!!不同系统版本这里的激活码不一样,请往下翻寻找表格!slmgr.vbs -skms kms.cangshui.net                           slmgr.vbs -atoslmgr.vbs -dlv


windows与office一键激活工具

懒人专用一键激活(bat脚本,安全无毒)
PS:管理员身份运行

下载地址【1】:本地下载

下载地址【2】:百度云盘密码: trav

注意!脚本有几率会更新!如果突然不能用了请重新下载!(2018/10/14更新)

 更新内容:添加了专业工作站版和专业教育版两种系统的激活key


附表:

各操作系统KMS激活方式所对应的激活码

Windows Server 半年频道版本

Windows Server 版本 1809Windows Server, version 1809

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server DatacenterWindows Server Datacenter 6NMRW-2C8FM-D24W7-TQWMY-CWH2D6NMRW-2C8FM-D24W7-TQWMY-CWH2D
Windows Server StandardWindows Server Standard N2KJX-J94YW-TQVFB-DG9YT-724CCN2KJX-J94YW-TQVFB-DG9YT-724CC

Windows Server 版本 1803Windows Server, version 1803

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server DatacenterWindows Server Datacenter 2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG
Windows Server StandardWindows Server Standard PTXN8-JFHJM-4WC78-MPCBR-9W4KRPTXN8-JFHJM-4WC78-MPCBR-9W4KR

Windows Server 版本 1709Windows Server, version 1709

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server DatacenterWindows Server Datacenter 6Y6KB-N82V8-D8CQV-23MJW-BWTG66Y6KB-N82V8-D8CQV-23MJW-BWTG6
Windows Server StandardWindows Server Standard DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4

Windows Server LTSC/LTSB 版本Windows Server LTSC/LTSB versions

Windows Server 2019Windows Server 2019

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server 2019 DatacenterWindows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFGWMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 StandardWindows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464CN69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 EssentialsWindows Server 2019 Essentials WVDHN-86M7X-466 P 6-VHXV7-YY726WVDHN-86M7X-466P6-VHXV7-YY726

Windows Server 2016Windows Server 2016

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server 2016 DatacenterWindows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDGCB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 StandardWindows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQYWC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 EssentialsWindows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63BJCKRF-N37P4-C2D82-9YXRT-4M63B

Windows 10 中,所有受支持的半年频道版本Windows 10, all supported Semi-Annual Channel versionsSee the Windows lifecycle fact sheet for information about supported versions and end of service dates.

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 10 专业版Windows 10 Pro W269N-WFGWX-YVC9B-4J6C9-T83GXW269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 专业版 NWindows 10 Pro N MH37W-N47XK-V7XM9-C7227-GCQG9MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 专业工作站Windows 10 Pro Workstations NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84JNRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
Windows 10 专业工作站 NWindows 10 Pro Workstations N 9FNHH-K3HBT-3W4TD-6383H-6XYWF9FNHH-K3HBT-3W4TD-6383H-6XYWF
Windows 10 专业教育版Windows 10 Pro Education 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
Windows 10 专业教育版 NWindows 10 Pro Education N YVWGF-BXNMC-HTQYQ-CPQ99-66QFCYVWGF-BXNMC-HTQYQ-CPQ99-66QFC
Windows 10 教育版Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 教育版 NWindows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Windows 10 企业版Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 企业版 NWindows 10 Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 企业版 GWindows 10 Enterprise G YYVX9-NTFWV-6MDM3-9PT4T-4M68BYYVX9-NTFWV-6MDM3-9PT4T-4M68B
Windows 10 企业版 G NWindows 10 Enterprise G N 44RPN-FTY23-9VTTB-MP9BX-T84FV44RPN-FTY23-9VTTB-MP9BX-T84FV

Windows 10 LTSC/LTSB 版本Windows 10 LTSC/LTSB versions

Windows 10 LTSC 2019Windows 10 LTSC 2019

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 10 企业版 LTSC 2019Windows 10 Enterprise LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462DM7XTQ-FN8P6-TTKYV-9D4CC-J462D
Windows 10 企业版 N LTSC 2019Windows 10 Enterprise N LTSC 2019 2NFX-8DJQP-P6BBQ-THF9C-7CG2H2NFX-8DJQP-P6BBQ-THF9C-7CG2H

Windows 10 LTSB 2016Windows 10 LTSB 2016

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 10 企业版 LTSB 2016Windows 10 Enterprise LTSB 2016 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJDCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 企业版 N LTSB 2016Windows 10 Enterprise N LTSB 2016 FFDN-GRT3P-VKWWX-X7T3R-8B639FFDN-GRT3P-VKWWX-X7T3R-8B639

Windows 10 LTSB 2015Windows 10 LTSB 2015

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 10 企业版 2015 长期服务Windows 10 Enterprise 2015 LTSB WNMTR-4C88C-JK8YV-HQ7T2-76DF9WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 企业版 2015 长期服务 NWindows 10 Enterprise 2015 LTSB N 2F77B-TNFGY-69QQF-B8YKP-D69TJ2F77B-TNFGY-69QQF-B8YKP-D69TJ

Windows Server 早期版本Earlier versions of Windows Server

Windows Server 2012 R2Windows Server 2012 R2

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server 2012 R2 Server StandardWindows Server 2012 R2 Server Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJXD2N9P-3P6X9-2R39C-7RTCD-MDVJX
WindowsServer 2012 R2 DatacenterWindows Server 2012 R2 Datacenter W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
WindowsServer 2012 R2 EssentialsWindows Server 2012 R2 Essentials KNC87-3J2TX-XB4WP-VCPJV-M4FWMKNC87-3J2TX-XB4WP-VCPJV-M4FWM

Windows Server 2012Windows Server 2012

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server 2012Windows Server 2012 BN3D2-R7TKB-3YPBD-8DRP2-27GG4BN3D2-R7TKB-3YPBD-8DRP2-27GG4
Windows Server 2012 NWindows Server 2012 N 8N2M2-HWPGY-7PGT9-HGDD8-GVGGY8N2M2-HWPGY-7PGT9-HGDD8-GVGGY
Windows Server 2012 单语言版Windows Server 2012 Single Language 2WN2H-YGCQR-KFX6K-CD6TF-84YXQ2WN2H-YGCQR-KFX6K-CD6TF-84YXQ
Windows Server 2012 特定国家/地区版Windows Server 2012 Country Specific 4K36P-JN4VD-GDC6V-KDT89-DYFKP4K36P-JN4VD-GDC6V-KDT89-DYFKP
Windows Server 2012 Server StandardWindows Server 2012 Server Standard XC9B7-NBPP2-83J2H-RHMBY-92BT4XC9B7-NBPP2-83J2H-RHMBY-92BT4
Windows Server 2012 MultiPoint StandardWindows Server 2012 MultiPoint Standard HM7DN-YVMH3-46JC3-XYTG7-CYQJJHM7DN-YVMH3-46JC3-XYTG7-CYQJJ
Windows Server 2012 MultiPoint PremiumWindows Server 2012 MultiPoint Premium XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2GXNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G
Windows Server 2012 DatacenterWindows Server 2012 Datacenter 48HP8-DN98B-MYWDG-T2DCC-8W83P48HP8-DN98B-MYWDG-T2DCC-8W83P

Windows Server 2008 R2Windows Server 2008 R2

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Server 2008 R2 Web 版Windows Server 2008 R2 Web 6TPJF-RBVHG-WBW2R-86QPH-6RTM46TPJF-RBVHG-WBW2R-86QPH-6RTM4
Windows Server 2008 R2 HPC 版Windows Server 2008 R2 HPC edition TT8MH-CG224-D3D7Q-498W2-9QCTXTT8MH-CG224-D3D7Q-498W2-9QCTX
WindowsServer 2008 R2 StandardWindows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHCYC6KT-GKW9T-YTKYR-T4X34-R7VHC
WindowsServer 2008 R2 企业版Windows Server 2008 R2 Enterprise 489J6-VHDMP-X63PK-3K798-CPX3Y489J6-VHDMP-X63PK-3K798-CPX3Y
WindowsServer 2008 R2 DatacenterWindows Server 2008 R2 Datacenter 74YFP-3QFB3-KQT8W-PMXWJ-7M64874YFP-3QFB3-KQT8W-PMXWJ-7M648
面向基于 Itanium 系统的 Windows Server 2008 R2Windows Server 2008 R2 for Itanium-based Systems GT63C-RJFQ3-4GMB6-BRFB9-CB83VGT63C-RJFQ3-4GMB6-BRFB9-CB83V

Windows Server 2008Windows Server 2008

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows Web Server 2008Windows Web Server 2008 WYR28-R7TFJ-3X2YQ-YCY4H-M249DWYR28-R7TFJ-3X2YQ-YCY4H-M249D
Windows Server 2008 StandardWindows Server 2008 Standard TM24T-X9RMF-VWXK6-X8JC9-BFGM2TM24T-X9RMF-VWXK6-X8JC9-BFGM2
不带 Hyper-V 的 Windows Server 2008 StandardWindows Server 2008 Standard without Hyper-V W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJW7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
Windows Server 2008 企业版Windows Server 2008 Enterprise YQGMW-MPWTJ-34KDK-48M3W-X4Q6VYQGMW-MPWTJ-34KDK-48M3W-X4Q6V
不带 Hyper-V 的 Windows Server 2008 企业版Windows Server 2008 Enterprise without Hyper-V 39BXF-X8Q23-P2WWT-38T2F-G3FPG39BXF-X8Q23-P2WWT-38T2F-G3FPG
Windows Server 2008 HPCWindows Server 2008 HPC RCTX3-KWVHP-BR6TB-RB6DM-6X7HPRCTX3-KWVHP-BR6TB-RB6DM-6X7HP
Windows Server 2008 DatacenterWindows Server 2008 Datacenter 7M67G-PC374-GR742-YH8V4-TCBY37M67G-PC374-GR742-YH8V4-TCBY3
不带 Hyper-V 的 Windows Server 2008 DatacenterWindows Server 2008 Datacenter without Hyper-V 22XQ2-VRXRG-P8D42-K34TD-G3QQC22XQ2-VRXRG-P8D42-K34TD-G3QQC
面向基于 Itanium 系统的 Windows Server 2008Windows Server 2008 for Itanium-Based Systems 4DWFP-JF3DJ-B7DTH-78FJB-PDRHK4DWFP-JF3DJ-B7DTH-78FJB-PDRHK

早期版本的 WindowsEarlier versions of Windows

Windows 8.1Windows 8.1

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 8.1 专业版Windows 8.1 Pro GCRJD-8NW9H-F2CDX-CCM8D-9D6T9GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows 8.1 专业版 NWindows 8.1 Pro N HMCNV-VVBFX-7HMBH-CTY9B-B4FXYHMCNV-VVBFX-7HMBH-CTY9B-B4FXY
Windows 8.1 企业版Windows 8.1 Enterprise MHF9N-XY6XB-WVXMC-BTDCT-MKKG7MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
Windows 8.1 企业版 NWindows 8.1 Enterprise N TT4HM-HN7YT-62K67-RGRQJ-JFFXWTT4HM-HN7YT-62K67-RGRQJ-JFFXW

Windows 8Windows 8

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 8 专业版Windows 8 Pro NG4HW-VH26C-733KW-K6F98-J8CK4NG4HW-VH26C-733KW-K6F98-J8CK4
Windows 8 专业版 NWindows 8 Pro N XCVCF-2NXM9-723PB-MHCB7-2RYQQXCVCF-2NXM9-723PB-MHCB7-2RYQQ
Windows 8 企业版Windows 8 Enterprise 32JNW-9KQ84-P47T8-D8GGY-CWCK732JNW-9KQ84-P47T8-D8GGY-CWCK7
Windows 8 企业版 NWindows 8 Enterprise N JMNMF-RHW7P-DMY6X-RF3DR-X2BQTJMNMF-RHW7P-DMY6X-RF3DR-X2BQT

Windows 7Windows 7

操作系统版本Operating system edition KMS 客户端安装密钥KMS Client Setup Key
Windows 7 专业版Windows 7 Professional FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 专业版 NWindows 7 Professional N MRPKT-YTG23-K7D7T-X2JMM-QY7MGMRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 专业版 EWindows 7 Professional E W82YF-2Q76Y-63HXB-FGJG9-GF7QXW82YF-2Q76Y-63HXB-FGJG9-GF7QX
Windows7 企业版Windows 7 Enterprise 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 企业版 NWindows 7 Enterprise N YDRBP-3D83W-TY26F-D46B2-XCKRJYDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 企业版 EWindows 7 Enterprise E C29WB-22CC8-VJ326-GHFJW-H9DH4C29WB-22CC8-VJ326-GHFJW-H9DH4

· Plan for Volume Activation

激活OFFICE

有些朋友使用我的脚本无法激活office,这里推荐一个集下载和激活为一体的工具https://otp.landian.la/zh-cn/

下载安装软件,使用方法点此处

激活失败的原因可能有哪些?

1、你的系统/OFFICE是否是批量VL版本
2、是否以管理员权限运行CMD
3、你的系统/OFFICE是否修改过KEY/未安装GVLK KEY
4、检查你的网络连接
5、本地的解析不对,或网络问题(点击检查服务器是否能连上)
6、根据出错代码自己搜索出错原因
7、0x80070005错误一般是你没用管理员权限运行CMD

(0)

相关推荐