一、部署windows 2008 R2 KMS激活:
1、安装Windows2008R2w_sp1系统,加入域,配置好DNS;
2、以管理员权限运行cmd;
3、(可省略)查看当前KMS状态:cscript slmgr.vbs /dli
4、安装KMS Key:cscript slmgr.vbs /ipk <KmsKey>
5、激活KMS Host(确保Internet连接的情况下):cscript slmgr.vbs /ato
6、发布KMS服务器到DNS上:cscript slmgr.vbs /sdns
7、开启1688端号,使KMS可以通过防火墙。打开控制面板,单击“允许程序通过Windows防火墙”,选中“密钥管理服务”。
8、(可省略)重启Software Protection服务:net stop sppsvc && net start sppsvc
9、(可省略)检查KMS状态:cscript slmgr.vbs /dli
10、客户端激活:slmgr.vbs -skms kms-server-ip
注意:如果此步出错,运行slmgr -ipk xxx-xx-xx,再运行上一步
slmgr.vbs -ato
11、在KMS服务器上检查激活的数量:slmgr.vbs -dlv
Windows2008R2 KMS服务器支持激活Windows 7/2008R2
一般情况下,每个kms密钥直接激活6台服务器,并且这6台都可以作为kms服务器,这6台机器如果重装,每台共可以激活10次
二、部署Office2010(2013、2016类似)KMS激活:
1、下载office2010 KMS主机许可证包,下载并运行KeyManagementServiceHost.exe
Office2013 KMS许可证包和2010不同,下载文件后打开命令行窗口,运行cscript kms_host.vbs
<a href="http://blog.51cto.com/attachment/201310/151411530.jpg" target="_blank"></a>
2、出现提示时,输入您的KMS主机密钥
3、出现提示时,继续进行激活(在KMS主机连接internet情况下)
4、客户端连接KMS服务器激活:
cscript ospp.vbs /sethst:<KMS 主机名>
cscript ospp.vbs /act //激活
cscript ospp.vbs /dhistorykms //查看激活历史,确认是否已经和激活主机连接上了
注意:ospp.vbs 在 Office 安装目录,如 Office2010安装目录:C:\Program Files (x86)\Microsoft Office\Office14
Office2013安装目录:C:\Program Files (x86)\Microsoft Office\Office15
<a href="http://blog.51cto.com/attachment/201310/151523988.jpg" target="_blank"></a>
5、查看KMS服务器office激活的数量:slmgr.vbs /dlv bfe7a195-4f8f-4f0b-a622-cf13c7d16864
Office 2013 Activation ID:2E28138A-847F-42BC-9752-61B03FFF33CD
Office 2010 Activation ID:bfe7a195-4f8f-4f0b-a622-cf13c7d16864
手动导入客户端密钥:cscript ospp.vbs /inpkey:xxx-xx-xx-xx-xxx
三、部署Windows7 KMS激活方法同Windows2008R2(注意KMS host key系统要求)
1、导入KMS Host密钥:slmgr /ipk xxx
2、激活KMS Host:slmgr /ato(电话激活:slui.exe 4)
3、重启服务:net stop sppsvc && net start sppsvc
4、客户端连接激活:
slmgr /skms 10.0.0.1:1688(端口可选)
slmgr /ipk xxx-xx-xx-xx-xxx(可选,导入客户端密钥可转成KMS客户端版本)
slmgr /ato
四、部署(Windows2008R2 KMS服务器)添加支持Windows 8/2012(+添加支持Windows 8.1/2012R2)的客户端激活
2、安装用于Windows 8/2012(或8.1/2012R2)激活的新 KMS 主机密钥,请运行以下命令:
cscript %windir%\system32\slmgr.vbs /ipk <KMS 主机密钥>
3、激活主计算机上的新 KMS 主机密钥,在连网情况下运行:cscript %windir%\system32\slmgr.vbs /ato
<a href="http://blog.51cto.com/attachment/201310/152101776.jpg" target="_blank"></a>
Windows 2012(R2)客户端激活限制的数量包括Windows 2008R2的台数,即在有5台Windows2008R2的条件下1台Windows 2012(R2)一样可以激活。
<a href="http://support.microsoft.com/kb/2757817/zh-cn" target="_blank">http://support.microsoft.com/kb/2757817/zh-cn</a>
注意:开通防火墙1688端口(允许key management service通过domain、home),否则会报0xC004F039错误。
如果客户端与服务器时间相差太远也可能导致激活错误,会报0xC004F074错误
如果客户端不足,会报0xC004F038错误。Office\Windows 2008R2客户端激活限制:5台,Windows7:25台,如若计数不够可通过增加计数脚本补充不足计数,脚本见附件(在KMS服务器上执行)。
当前Windows 7与Windows Server 2008 R2操作系统的分组如下:
Windows 客户端分组:Windows 7 Professional、Windows 7 Enterprise;
服务器分组A:Windows Web Server 2008 R2、Windows Server 2008 R2 HPC Edition、Windows HPC Server 2008 R2;
服务器分组B:Windows Server 2008 R2 Standard、Windows Server 2008 R2 Enterprise;
服务器分组C:Windows Server 2008 R2 Datacenter、Windows Server 2008 R2 Itanium-based System。
server C>server B>server A>client VL
用高级别的密钥组成的KMS服务器可以激活低级别的系统。
KMS的密钥类型旨在激活指定主机系统的服务,在本质上是按等级划分的。
(1)KMS 密钥可发布至特定的产品分组,并与它们相互关联。
(2)每种 KMS 密钥可以激活产品组内以及该层次结构中级别更低的产品组中的产品。
将KMS主机、MAK或零售版的Windows转换成KMS客户端方法:
slmgr /ipk <setup key>.
===================================================================
五、部署Windows 10 KMS激活
微软发布Windows 10后,计划在公司内把Windows 10客户端激活服务也添加到KMS Host中。部署方法和上面的类似,只是有一些特殊的限制。具体如下:
1、Windows 10要求Your existing KMS host must be running Windows 8 or later,所以要升级Windows 2008 R2系统至Windows 2012 R2,插入光盘点击setup,按照默认步骤升级即可(或新安装一台);
2、升级完成后,更新系统补丁至最新。打开服务器管理器,安装“批量激活服务”角色;
3、安装完打开“批量激活工具”,安装KMS主机密钥,如下图:
<a href="http://s3.51cto.com/wyfs02/M00/71/57/wKioL1XMFDWTPOLDAAFM-wDad0Q945.jpg" target="_blank"></a>
4、输入“Windows Srv 2012R2 DataCtr/Std KMS for Windows 10 ”的KMS密钥(支持Vista/2008至Win10/2012R2的所有系统激活),提交通过网络或电话激活,关闭完成。也可根据需要修改默认配置;
5、下载Office2010、2013、2016的KMS主机许可证包,运行输入密钥激活;
Office2010:KeyManagementServiceHost.exe
<a href="http://www.microsoft.com/zh-cn/download/details.aspx?id=25095" target="_blank">http://www.microsoft.com/zh-cn/download/details.aspx?id=25095</a>
Office2013(2016相同):KMS许可证包和2010不同,一种是从批量批可中心下载的vbs文件,运行cscript kms_host.vbs;另一种是从下载中心下载的可执行文件office2013volumelicensepack.exe
<a href="http://www.microsoft.com/zh-CN/download/details.aspx?id=35584" target="_blank">http://www.microsoft.com/zh-CN/download/details.aspx?id=35584</a>
6、客户端激活,同以上的介绍。
注意事项:
官方说明文档:Windows 10 Activate using Key Management Service
<a href="https://technet.microsoft.com/zh-cn/library/mt297923.aspx" target="_blank">https://technet.microsoft.com/zh-cn/library/mt297923.aspx</a>
若系统未更新到最新,需下载安装Windows Server 2012 R2 更新程序 (KB3058168)以支持客户端激活
<a href="http://www.microsoft.com/zh-CN/download/details.aspx?id=47622" target="_blank">http://www.microsoft.com/zh-CN/download/details.aspx?id=47622</a>
安装KB3058168前需要先安装Windows Server 2012 R2 更新 (KB2919355)
<a href="http://www.microsoft.com/zh-CN/download/details.aspx?id=42334" target="_blank">http://www.microsoft.com/zh-CN/download/details.aspx?id=42334</a>
测试过程中,未查全所有文档,直接先通过Windows Server 2012 R2 Standard - Windows Server 2012 R2 (Std and DataCtr)的KMS密钥激活2012R2,然后再输入Windows 10的KMS密钥时,提示“软件授权服务报告许可证未安装”、系统日志“安装购买证明失败。0xC004F015”的错误。
在Win10客户端激活时报“0xC004F074 软件授权服务报告无法激活计算机,无法联系任何密钥管理服务”、系统日志报事件ID12288的“0xC004F042”的错误
在网上搜索官方文档有以下说明:“Error 0xC004F015 when you try to activate Windows 10 Enterprise on a Windows Server 2012 R2 KMS host”
<a href="https://support.microsoft.com/en-us/kb/3086418" target="_blank">https://support.microsoft.com/en-us/kb/3086418</a>
To resolve this problem, follow these steps:
Log on to the Volume Licensing Service Center (VLSC).
Click License.
Click Relationship Summary.
Click License ID of their current Active License.
After the page loads, click Product Keys.
In the list of keys, locate Windows Srv 2012R2 DataCtr/Std KMS for Windows 10.
Install this key on the KMS host.
输入Windows Srv 2012R2 DataCtr/Std KMS for Windows 10的密钥就可以了,绕了一圈。
六、部署Windows Server 2016激活
按照上面的部署,在Windows Server 2012 R2系统上部署windows 2016激活,需要完成以下两个步骤:
1、安装KB3058168补丁(部署win10时已安装,此步跳过)
<a href="https://support.microsoft.com/kb/3058168" target="_blank">https://support.microsoft.com/kb/3058168</a>
2、安装KB3172614补丁
<a href="https://support.microsoft.com/kb/3172614" target="_blank">https://support.microsoft.com/kb/3172614</a>
安装完补丁重启后,即可导入KMS密钥:
1、打开“批量激活工具”
2、按照提示步骤,在“安装KMS主机密钥”处输入Windows 2016的KMS密钥
3、下一步,选择激活产品(如下图,默认只有一个选项),提交后连网在线激活即可。
<a href="https://s3.51cto.com/wyfs02/M01/8D/D6/wKiom1ir_d_Bb7rDAACfMOQQYQc896.jpg" target="_blank"></a>
客户端激活:方法同2008,2012。
1、slmgr /skms kms-host-ip
2、slmgr /ato
参考:
<a href="https://blogs.technet.microsoft.com/askpfeplat/2016/10/24/kms-activation-for-windows-server-2016" target="_blank">https://blogs.technet.microsoft.com/askpfeplat/2016/10/24/kms-activation-for-windows-server-2016</a>
七、附录:KMS Client Setup Keys
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx" target="_blank">https://technet.microsoft.com/en-us/library/jj612867.aspx</a>
Updated: August 2, 2016
Applies To: Windows 10, Windows 8.1, Windows Server 2012 R2
Computers that are running volume licensing editions of Windows 10, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008 are, by default, KMS clients with no additional configuration needed.
If you are converting a computer from a KMS host, MAK, or retail edition of Windows to a KMS client, install the applicable setup key (GVLK) from the following tables. To install a client setup key, open an administrative command prompt on the client, type slmgr /ipk <setup key> and then press Enter.
If you want to…
…use these resources
Activate Windows outside of a volume-activation scenario (that is, you’re trying to activate a retail version of Windows), these keys will not work.
Use these links for retail versions of Windows:
<a href="http://windows.microsoft.com/windows/get-windows-product-key" target="_blank">Get a new Windows product key</a>
<a href="http://windows.microsoft.com/windows/help/genuine" target="_blank">Genuine Windows Help & How-to</a>
<a href="http://answers.microsoft.com/windows/forum/windows8_1-windows_install-winactivate?tab=Threads" target="_blank">Microsoft Community forum on installation and activation</a>
Fix this error that you get when you try to activate a Windows 8.1, Windows Server 2012 R2 or newer system: “Error: 0xC004F050 The Software Licensing Service reported that the product key is invalid”…
If you are running Windows Server 2008 R2 or Windows 7, be on the lookout for an update to support using those as KMS hosts for Windows 10 clients.
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_0" target="_blank"></a>
Operating system edition
KMS Client Setup Key
Windows Server 2016 Datacenter
CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard
WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials
JCKRF-N37P4-C2D82-9YXRT-4M63B
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_1" target="_blank"></a>
Windows 10 Professional
W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N
MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Enterprise
NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise N
DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 Education
NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N
2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Windows 10 Enterprise 2015 LTSB
WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Enterprise 2015 LTSB N
2F77B-TNFGY-69QQF-B8YKP-D69TJ
Windows 10 Enterprise 2016 LTSB
DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 Enterprise 2016 LTSB N
QFFDN-GRT3P-VKWWX-X7T3R-8B639
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_2" target="_blank"></a>
Windows 8.1 Professional
GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows 8.1 Professional N
HMCNV-VVBFX-7HMBH-CTY9B-B4FXY
Windows 8.1 Enterprise
MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
Windows 8.1 Enterprise N
TT4HM-HN7YT-62K67-RGRQJ-JFFXW
Windows Server 2012 R2 Server Standard
D2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2012 R2 Datacenter
W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
Windows Server 2012 R2 Essentials
KNC87-3J2TX-XB4WP-VCPJV-M4FWM
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_3" target="_blank"></a>
Windows 8 Professional
NG4HW-VH26C-733KW-K6F98-J8CK4
Windows 8 Professional N
XCVCF-2NXM9-723PB-MHCB7-2RYQQ
Windows 8 Enterprise
32JNW-9KQ84-P47T8-D8GGY-CWCK7
Windows 8 Enterprise N
JMNMF-RHW7P-DMY6X-RF3DR-X2BQT
Windows Server 2012
BN3D2-R7TKB-3YPBD-8DRP2-27GG4
Windows Server 2012 N
8N2M2-HWPGY-7PGT9-HGDD8-GVGGY
Windows Server 2012 Single Language
2WN2H-YGCQR-KFX6K-CD6TF-84YXQ
Windows Server 2012 Country Specific
4K36P-JN4VD-GDC6V-KDT89-DYFKP
Windows Server 2012 Server Standard
XC9B7-NBPP2-83J2H-RHMBY-92BT4
Windows Server 2012 MultiPoint Standard
HM7DN-YVMH3-46JC3-XYTG7-CYQJJ
Windows Server 2012 MultiPoint Premium
XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G
Windows Server 2012 Datacenter
48HP8-DN98B-MYWDG-T2DCC-8W83P
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_4" target="_blank"></a>
Windows 7 Professional
FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Professional N
MRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 Professional E
W82YF-2Q76Y-63HXB-FGJG9-GF7QX
Windows 7 Enterprise
33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 Enterprise N
YDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 Enterprise E
C29WB-22CC8-VJ326-GHFJW-H9DH4
Windows Server 2008 R2 Web
6TPJF-RBVHG-WBW2R-86QPH-6RTM4
Windows Server 2008 R2 HPC edition
TT8MH-CG224-D3D7Q-498W2-9QCTX
Windows Server 2008 R2 Standard
YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 R2 Enterprise
489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 Datacenter
74YFP-3QFB3-KQT8W-PMXWJ-7M648
Windows Server 2008 R2 for Itanium-based Systems
GT63C-RJFQ3-4GMB6-BRFB9-CB83V
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_5" target="_blank"></a>
Windows Vista Business
YFKBB-PQJJV-G996G-VWGXY-2V3X8
Windows Vista Business N
HMBQG-8H2RH-C77VX-27R82-VMQBT
Windows Vista Enterprise
VKK3X-68KWM-X2YGT-QR4M6-4BWMV
Windows Vista Enterprise N
VTC42-BM838-43QHV-84HX6-XJXKV
Windows Web Server 2008
WYR28-R7TFJ-3X2YQ-YCY4H-M249D
Windows Server 2008 Standard
TM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Standard without Hyper-V
W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
Windows Server 2008 Enterprise
YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 Enterprise without Hyper-V
39BXF-X8Q23-P2WWT-38T2F-G3FPG
Windows Server 2008 HPC
RCTX3-KWVHP-BR6TB-RB6DM-6X7HP
Windows Server 2008 Datacenter
7M67G-PC374-GR742-YH8V4-TCBY3
Windows Server 2008 Datacenter without Hyper-V
22XQ2-VRXRG-P8D42-K34TD-G3QQC
Windows Server 2008 for Itanium-Based Systems
4DWFP-JF3DJ-B7DTH-78FJB-PDRHK
<a href="https://technet.microsoft.com/en-us/library/jj612867.aspx#Anchor_6" target="_blank"></a>
<a href="https://technet.microsoft.com/en-us/library/jj134042.aspx" target="_blank">Plan for Volume Activation</a>
本文转自 lorysun 51CTO博客,原文链接:http://blog.51cto.com/lorysun/1261192