首先 (Shǒu xiān) 祝大家圣诞快乐 (zhù dà jiā shèng dàn kuài lè) 平安喜乐 (píng ān xǐ lè)

KMS命令激活WINDOWS

1、使用这种方式激活必须确认你安装的是VL批量版本并且没有手动安装过任何key

slmgr /skms kms.v2ex.cc    #把kms服务器地址设置(set kms)为kms.v2ex.cc
slmgr /ato    #对当前设置的key和服务器地址等进行尝试激活

2、如果你之前使用过其他的激活方式需要先卸载KMS卸载方法见下文,再添加与你当前系统匹配的密钥和KMS服务器。

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx    #添加与系统版本匹配的密钥
slmgr /skms kms.v2ex.cc    #把kms服务器地址设置(set kms)为kms.v2ex.cc
slmgr /ato    #对当前设置的key和服务器地址等进行尝试激活

以上就是KMS手动激活命令请看下文中更多关于kms和slmgr的命令参数说明,当然你也可以复制下面的批处理来更加方便的激活各种版本。

@echo off 
color 07
title “Windows Key Management Service (KMS)”
echo Key Management Service 
echo 1 Windows Server 2008 Standard        
echo 2 Windows Server 2008 Enterprise    
echo 3 Windows Server 2008 Datacenter    
echo 4 Windows Server 2008 R2 Standard    
echo 5 Windows Server 2008 R2 Enterprise    
echo 6 Windows Server 2008 R2 Datacenter    
echo 7 Windows Server 2012 Server Standard    
echo 8 Windows Server 2012 Datacenter
echo 9 Windows Server 2012 R2 Server Standard    
echo 10 Windows Server 2012 R2 Datacenter    
echo 11 Windows Server 2016 Datacenter  
echo 12 Windows Server 2016 Standard    
echo 13 Windows Server 2016 R2 Datacenter   
echo 14 Windows Server 2016 R2 Standard  
echo 15 Windows 7 Professional
echo 16 Windows 7 Enterprise
echo 17 Windows 8.1 Professional
echo 18 Windows 8.1 Enterprise
echo 19 Windows 10 Professional
echo 20 Windows 10 Enterprise
echo 21 Microsoft Office 2013 Pro Plus Vol
echo 22 Microsoft Office 2016 Professional Plus
echo 23 为查看计算机激活信息

set /p input=请输入数字 1-23 : 
if "%input%"=="1" goto 1
if "%input%"=="2" goto 2
if "%input%"=="3" goto 3
if "%input%"=="4" goto 4
if "%input%"=="5" goto 5
if "%input%"=="6" goto 6
if "%input%"=="7" goto 7
if "%input%"=="8" goto 8
if "%input%"=="9" goto 9
if "%input%"=="10" goto 10
if "%input%"=="11" goto 11
if "%input%"=="12" goto 12
if "%input%"=="13" goto 13
if "%input%"=="14" goto 14
if "%input%"=="15" goto 15
if "%input%"=="16" goto 16
if "%input%"=="17" goto 17
if "%input%"=="18" goto 18
if "%input%"=="19" goto 19
if "%input%"=="20" goto 20
if "%input%"=="21" goto 21
if "%input%"=="22" goto 22
if "%input%"=="23" goto 23
pause 
exit 

:1
echo 您输入的数字是1,操作系统是Windows Server 2008 Standard
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk TM24T-X9RMF-VWXK6-X8JC9-BFGM2
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:2
echo 您输入的数字是2,操作系统是Windows Server 2008 Enterprise
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:3
echo 您输入的数字是3,操作系统是Windows Server 2008 Datacenter
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk 7M67G-PC374-GR742-YH8V4-TCBY3
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:4
echo 您输入的数字是4,操作系统是Windows Server 2008 R2 Standard
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:5
echo 您输入的数字是5,操作系统是Windows Server 2008 R2 Enterprise
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk 489J6-VHDMP-X63PK-3K798-CPX3Y
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:6
echo 您输入的数字是6,操作系统是Windows Server 2008 R2 Datacenter
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk 74YFP-3QFB3-KQT8W-PMXWJ-7M648
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:7
echo 您输入的数字是7,操作系统是Windows Server 2012 Server Standard
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk XC9B7-NBPP2-83J2H-RHMBY-92BT4
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:8
echo 您输入的数字是8,操作系统是Windows Server 2012 Datacenter
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk 48HP8-DN98B-MYWDG-T2DCC-8W83P
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:9
echo 您输入的数字是9,操作系统是Windows Server 2012 R2 Server Standard
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk D2N9P-3P6X9-2R39C-7RTCD-MDVJX
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:10
echo 您输入的数字是10,操作系统是Windows Server 2012 R2 Datacenter
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 


:11
echo 您输入的数字是11,操作系统是Windows Server 2016 Standard
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:12
echo 您输入的数字是12,操作系统是Windows Server 2016 Datacenter
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:13
echo 您输入的数字是13,操作系统是Windows Server 2016 R2 Standard
pause 
@echo off
exit 

:14
echo 您输入的数字是14,操作系统是Windows Server 2016 R2 Datacenter
pause 
@echo off
exit 

:15
echo 您输入的数字是15,操作系统是Windows 7 Professional
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:16
echo 您输入的数字是16,操作系统是Windows 7 Enterprise
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:17
echo 您输入的数字是17,操作系统是Windows 8.1 Professional
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:18
echo 您输入的数字是18,操作系统是Windows 8.1 Enterprise
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:19
echo 您输入的数字是19,操作系统是Windows 10 Professional
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:20
echo 您输入的数字是20,操作系统是Windows 10 Enterprise
pause 
@echo off
cscript //B "%windir%\system32\slmgr.vbs" /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
cscript //B "%windir%\system32\slmgr.vbs" /skms kms.v2ex.cc
cscript //B "%windir%\system32\slmgr.vbs" /ato
exit 

:21
echo 您输入的数字是21,Office版本为Microsoft Office 2013 Pro Plus Vol
pause 
@echo off
cd %ProgramFiles%\Microsoft Office\Office15
cscript ospp.vbs /sethst:kms.v2ex.cc
cscript ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
exit 

:22
echo 您输入的数字是22,Office版本为Microsoft Office 2016 Professional Plus
pause 
@echo off
cd /d %ProgramFiles%\Microsoft Office\Office16
cscript ospp.vbs /sethst:kms.v2ex.cc
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
exit

:23
cls
echo 您输入的数字是23,查看计算机激活信息。 
pause 
@echo off
title 正在运行Windows 激活信息查看
echo 请耐心等待
@echo off

slmgr.vbs -dlv
slmgr.vbs -xpr
Winver
@echo off

@ ECHO.
%windir%\system32\systeminfo|find "初始安装日期"
@ ECHO.
%windir%\system32\systeminfo|find "系统启动时间"
@ ECHO.
%windir%\system32\systeminfo|find "OS 名称"
@ ECHO.
%windir%\system32\systeminfo|find "注册的组织"
@ ECHO.
%windir%\system32\systeminfo|find "系统制造商"
@ ECHO.
%windir%\system32\systeminfo|find "系统型号"
@ ECHO.
%windir%\system32\systeminfo|find "BIOS 版本"
@ ECHO.
%windir%\system32\systeminfo|find "产品 ID"
@ ECHO.
echo 按任意键退出...
pause>nul
exit

什么是slmgr及KMS相关

slmgr是Software License Manger的简称,是Windows软件授权管理工