Windows KMS激活脚本
@echo off&setlocal EnableDelayedExpansion&color 3e
title Windows KMS激活脚本 --by David
:: 如果激活失败,可能是因为连不到KMS服务器了,
:: 你仅需修改下面的KMS服务器地址
set KMS_Sev=kms.cdn.mn
set KMS_Port=1688
call :getver
call :adminchk
::定义win10
set 10.0_1_Core_=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
set 10.0_1_CoreCountrySpecific=PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
set 10.0_1_CoreN=3KHY7-WNT83-DGQKR-F7HPR-844BM
set 10.0_1_CoreSingleLanguage=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
set 10.0_1_Professional=W269N-WFGWX-YVC9B-4J6C9-T83GX
set 10.0_1_ProfessionalN=MH37W-N47XK-V7XM9-C7227-GCQG9
set 10.0_1_Enterprise=NPPR9-FWDCX-D2C8J-H872K-2YT43
set 10.0_1_EnterpriseN=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
set 10.0_1_Education=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
set 10.0_1_EducationN=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
set 10.0_1_EnterpriseS=WNMTR-4C88C-JK8YV-HQ7T2-76DF9
set 10.0_1_EnterpriseSN=2F77B-TNFGY-69QQF-B8YKP-D69TJ
set 10.0_1_ProfessionalEducation=6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
set 10.0_1_ProfessionalEducationN=YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
set 10.0_1_ProfessionalWorkstation=NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
set 10.0_1_ProfessionalWorkstationN=9FNHH-K3HBT-3W4TD-6383H-6XYWF
set 10.0_1_EnterpriseG=YYVX9-NTFWV-6MDM3-9PT4T-4M68B
set 10.0_1_EnterpriseGN=44RPN-FTY23-9VTTB-MP9BX-T84FV
set 10.0_1_Home=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
set 10.0_1_HomeN=3KHY7-WNT83-DGQKR-F7HPR-844BM
set 10.0_1_HomeSingleLanguage=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
set 10.0_1_HomeCountrySpecific=PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
::定义2016
set 10.0_3_ServerDatacenter=CB7KF-BWN84-R7R2Y-793K2-8XDDG
set 10.0_3_ServerStandard=WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
set 10.0_3_ServerEssentials=JCKRF-N37P4-C2D82-9YXRT-4M63B
set 10.0_3_ServerCloudStorage=QN4C6-GBJD2-FB422-GHWJK-GJG2R
set 10.0_3_ServerAzureCore=VP34G-4NPPG-79JTQ-864T4-R3MQX
set 10.0_3_ServerRDSH=7NBT4-WGBQX-MP4H7-QXFF8-YP3KX
::定义Windows Server 2012 R2 and Windows 8.1
set 6.3_3_ServerStandard=D2N9P-3P6X9-2R39C-7RTCD-MDVJX
set 6.3_3_ServerDatacenter=W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
set 6.3_3_ServerEssentials=KNC87-3J2TX-XB4WP-VCPJV-M4FWM
set 6.3_3_ServerCloudStorage=3NPTF-33KPT-GGBPR-YX76B-39KDD
set 6.3_1_Professional=GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
set 6.3_1_ProfessionalN=HMCNV-VVBFX-7HMBH-CTY9B-B4FXY
set 6.3_1_Enterprise=MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
set 6.3_1_EnterpriseN=TT4HM-HN7YT-62K67-RGRQJ-JFFXW
set 6.3_1_ProfessionalWMC=789NJ-TQK6T-6XTH8-J39CJ-J8D3P
set 6.3_1_Core=M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK
set 6.3_1_CoreN=7B9N3-D94CG-YTVHR-QBPX3-RJP64
set 6.3_1_CoreARM=XYTND-K6QKT-K2MRH-66RTM-43JKP
set 6.3_1_CoreSingleLanguage=BB6NG-PQ82V-VRDPW-8XVD2-V8P66
set 6.3_1_CoreCountrySpecific=NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3
set 6.3_1_EmbeddedIndustry=NMMPB-38DD4-R2823-62W8D-VXKJB
set 6.3_1_EmbeddedIndustryEnterprise=FNFKF-PWTVT-9RC8H-32HB2-JB34X
set 6.3_1_EmbeddedIndustryAutomotive=VHXM3-NR6FT-RY6RT-CK882-KW2CJ
set 6.3_1_CoreConnected=3PY8R-QHNP9-W7XQD-G6DPH-3J2C9
set 6.3_1_CoreConnectedN =Q6HTR-N24GM-PMJFP-69CD8-2GXKR
set 6.3_1_CoreConnectedSingleLanguage=KF37N-VDV38-GRRTV-XH8X6-6F3BB
set 6.3_1_CoreConnectedCountrySpecific=R962J-37N87-9VVK2-WJ74P-XTMHR
set 6.3_1_ProfessionalStudent=MX3RK-9HNGX-K3QKC-6PJ3F-W8D7B
set 6.3_1_ProfessionalStudentN=TNFGH-2R6PB-8XM3K-QYHX2-J4296
::定义Windows Server 2012 and Windows 8
set 6.2_1_Professional=NG4HW-VH26C-733KW-K6F98-J8CK4
set 6.2_1_ProfessionalN=XCVCF-2NXM9-723PB-MHCB7-2RYQQ
set 6.2_1_Enterprise=32JNW-9KQ84-P47T8-D8GGY-CWCK7
set 6.2_1_EnterpriseN=JMNMF-RHW7P-DMY6X-RF3DR-X2BQT
set 6.2_3_Server=BN3D2-R7TKB-3YPBD-8DRP2-27GG4
set 6.2_3_ServerN=8N2M2-HWPGY-7PGT9-HGDD8-GVGGY
set 6.2_3_ServerSingleLanguage=2WN2H-YGCQR-KFX6K-CD6TF-84YXQ
set 6.2_3_ServerCountry Specific=4K36P-JN4VD-GDC6V-KDT89-DYFKP
set 6.2_3_ServerStandard=XC9B7-NBPP2-83J2H-RHMBY-92BT4
set 6.2_3_ServerMultiPointStandard=HM7DN-YVMH3-46JC3-XYTG7-CYQJJ
set 6.2_3_ServerMultiPointPremium=XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G
set 6.2_3_ServerDatacenter=48HP8-DN98B-MYWDG-T2DCC-8W83P
::定义Windows Server 2008R2
set 6.1_3_ServerWeb=6TPJF-RBVHG-WBW2R-86QPH-6RTM4
set 6.1_3_ServerHPC=TT8MH-CG224-D3D7Q-498W2-9QCTX
set 6.1_3_ServerStandard=YC6KT-GKW9T-YTKYR-T4X34-R7VHC
set 6.1_3_ServerEnterprise=489J6-VHDMP-X63PK-3K798-CPX3Y
set 6.1_3_ServerDatacenter=74YFP-3QFB3-KQT8W-PMXWJ-7M648
set 6.1_3_ServerEnterpriseIA64=GT63C-RJFQ3-4GMB6-BRFB9-CB83V
::定义Windows 7
set 6.1_1_Professional=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
set 6.1_1_ProfessionalN=MRPKT-YTG23-K7D7T-X2JMM-QY7MG
set 6.1_1_ProfessionalE=W82YF-2Q76Y-63HXB-FGJG9-GF7QX
set 6.1_1_Enterprise=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
set 6.1_1_EnterpriseN=YDRBP-3D83W-TY26F-D46B2-XCKRJ
set 6.1_1_EnterpriseE=C29WB-22CC8-VJ326-GHFJW-H9DH4
::Windows Vista and Windows Server 2008
set 6.0_1_Business=YFKBB-PQJJV-G996G-VWGXY-2V3X8
set 6.0_1_BusinessN=HMBQG-8H2RH-C77VX-27R82-VMQBT
set 6.0_1_Enterprise=VKK3X-68KWM-X2YGT-QR4M6-4BWMV
set 6.0_1_EnterpriseN=VTC42-BM838-43QHV-84HX6-XJXKV
set 6.0_3_ServerWeb=WYR28-R7TFJ-3X2YQ-YCY4H-M249D
set 6.0_3_ServerStandard=TM24T-X9RMF-VWXK6-X8JC9-BFGM2
set 6.0_3_ServerEnterprise=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
set 6.0_3_ServerHPC=RCTX3-KWVHP-BR6TB-RB6DM-6X7HP
set 6.0_3_ServerDatacenter=7M67G-PC374-GR742-YH8V4-TCBY3
set 6.0_3_ServerIA64=4DWFP-JF3DJ-B7DTH-78FJB-PDRHK
::取得版本系统的 EditionID
for /f "tokens=3 delims=: " %%G in ('dism /Online /Get-CurrentEdition /English ^| findstr /i "Current Edition :"') do (
set "EditionID=%%G"
)
::取得系统的ProductType类型
for /f "tokens=2 delims== " %%I in ('wmic os get ProductType /value') do (
set "ProductType=%%I"
)
set strEditionId=%winver%_%ProductType%_%EditionID%
if defined %strEditionId% (
cscript //Nologo %windir%\system32\slmgr.vbs /ipk !%strEditionId%!
cscript //Nologo %windir%\system32\slmgr.vbs /skms %KMS_Sev%
cscript //Nologo %windir%\system32\slmgr.vbs /ato
) else (
echo.&echo 没有找到对应的序列号: "%EditionID%".
echo.
)
pause
exit
:getver
ver | find "10.0." >nul && set "winver=10.0"
ver | find "6.3." >nul && set "winver=6.3"
ver | find "6.2." >nul && set "winver=6.2"
ver | find "6.1." >nul && set "winver=6.1"
ver | find "6.0." >nul && set "winver=6.0"
:adminchk
reg query "HKU\S-1-5-19" >nul 2>nul || (
cls&echo.&echo 请使用管理员模式运行.
echo.&echo 按任意键退出.
echo.&pause>nul
exit)
goto :EOF
Windows KMS激活脚本的更多相关文章
- Windows全版本KMS激活脚本
搭建了个KMS服务器,制作了个批处理激活脚本,所有代码可以看到,让你再也不用担心系统会被有些激活工具强改主页,留有后门的风险了. 本脚本可以激活Windows全版本,安全.绿色. 1.首先你的系统必须 ...
- windows全系列激活脚本-改良版.cmd
@ECHO OFFTITLE Windows 全版本系统激活cscript //nologo %Systemroot%\system32\slmgr.vbs -skms 10.1.1.12ECHO 检 ...
- Windows 10 KMS 激活方法
本篇文章由:http://xinpure.com/windows-10-activate-method/ 摘抄: http://www.nruan.com/win-key.html 须知:如果需要在线 ...
- Windows GVLK密钥对照表(KMS激活专用
以下key来源于微软官网:https://technet.microsoft.com/en-us/library/jj612867.aspx Windows Server 2016 操作系统 KMS激 ...
- Windows / Office - KMS激活
Windows / Office - KMS激活 支持Windows操作系统,支持Office软件:包括Windows 10,Office 2016:包括VL版本和MSDN版. (UPDATE: Of ...
- cubieboard中使用py-kms与dnsmasq搭建局域网内全自动KMS激活环境
众所周知,KMS激活方式是当前广大网民“试用”windows,office的最广泛的激活方式.几乎可以用于微软的全线产品. 但是在本机使用KMS类的激活工具总是有些不放心,一方面每隔180天都要重新激 ...
- KMS激活工具
工具介绍 KMS_VL_ALL,国外MDL论坛的一款KMS激活工具,可自动识别需要激活的Windows以及Office的VL版本,无需联网即可全自动检测激活,支持创建自动续期计划,相比于国外的同类工具 ...
- Office 2010 KMS激活原理和案例分享
Office 2010 KMS激活原理和案例分享 为了减低部署盗版(可能包含恶意软件.病毒和其他安全风险)的可能性,Office 2010面向企业客户推出了新的批量激活方式:KMS和MAK.这 ...
- Office 2010 KMS激活原理和案例分享 - Your Office Solution Here - Site Home - TechNet Blogs
[作者:葛伟华.张玉工程师 , Office/Project支持团队, 微软亚太区全球技术支持中心 ] 为了减低部署盗版(可能包含恶意软件.病毒和其他安全风险)的可能性,Office 2010面向企 ...
随机推荐
- 使用robotframework做接口测试4——搞定接口签名及密码加密
接口签名是我做接口测试撞到的第一块石头,刚到新公司,本来想默默憋出来一个大招,然后碰到了签名接口,直接给跪了.于是只好找开发哥哥帮忙,把签名算法的java文件拿到,一行行对着用python实现了一遍. ...
- API接口设计的五大公共参数
1.平台参数 2.操作系统参数 iOS.Android.PC等等 3.软件版本参数 4.udid号(设备唯一ID) 每个设备都会有一个唯一udid 5.渠道号 app软件从那个渠道下载
- 【Python基础】lpthw - Exercise 46 项目骨架
本节将会介绍如何构建一个项目骨架目录.骨架目录中会包含项目文件布局.自动测试代码.模块及安装脚本. 一.环境配置(win10) 1. 检查并确认自己只安装了一个python版本. cd ~ pytho ...
- mysql 速度优化
1.添加索引 ALTER TABLE `cw_base_house` ADD INDEX idx_house ( `villageCode`, `buildingNo`, `unitNo`, `hou ...
- 瀑布布局(waterflall flow)实现
瀑布流,又称瀑布流式布局.是比较流行的一种网站页面布局,视觉表现为参差不齐的多栏布局,随着页面滚动条向下滚动.这种布局还会不断加载数据块并附加至当前尾部.最早采用此布局的网站是Pinterest,逐渐 ...
- [转帖]FreeBSD、OpenBSD、NetBSD的区别
FreeBSD.OpenBSD.NetBSD的区别 Linux 的历史 http://www.361way.com/unix-bsd/1513.html 一直unix在我心目中的地位都很高,uni ...
- [转帖]$PWD 和 $(pwd)
$PWD 和 $(pwd) https://blog.csdn.net/shaojwa/article/details/51894980 细节决定成败. 注意两个效果一样,但是注意大小写,PWD是 ...
- java 如何编写多线程的代码
线程是干活的所以线程一定是Thread,或者改线程实现Runnable接口多线程是竞争关系,所以多个线程竞争同一个资源,也就是同一个对象所以这个竞争对象发到Thread中即: // resources ...
- 移动端、pc端通用点击复制
点击复制 function copyArticle(event){ const range = document.createRange(); range.selectNode(document.ge ...
- jQuery可拖拽旋转的3D图片墙
在线演示 本地下载