Windows / Office - KMS激活
作者:互联网
Windows / Office - KMS激活
支持Windows操作系统,支持Office软件;包括Windows 10,Office 2016;包括VL版本和MSDN版。
(UPDATE: Office只支持VL版本激活)
VOL版本 激活
VOL版本(团体批量许可证)下载的ISO镜像名称,一般以SW
开头,或者有vl
字样。区别于零售版,VOL版本安装的Windows系统或Office软件,自带密钥,在KMS激活过程中,无需另外更改密钥。
确保是VOL版本的Windows或Office,且自己没有手动更改过任何密钥。
Windows VOL
用管理员身份打开命令提示符(CMD),执行下面命令:
cd /d "%SystemRoot%\system32"
slmgr /skms kms.onebox.site
slmgr /ato
slmgr /xpr
Office VOL
用管理员身份打开命令提示符(CMD),进入Office软件安装目录。
Office软件安装目录,这里以Office 2016为例:
# 32位:
cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
# 64位:
cd /d "%ProgramFiles%\Microsoft Office\Office16"
不确定Office软件版本,可以打开例如Word查看(参考传送门);或者在资源管理器中进入%ProgramFiles%\Microsoft Office
这个目录查看,目录中有OSPP.VBS
,也可以通过搜素。
随后执行下面命令:
cscript ospp.vbs /sethst:kms.onebox.site
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
通过以上操作就可以激活VOL版本的Windows和Office。
MSDN版本 激活
MSDN版本,也可以说是零售版本吧。有个著名的网站(MSDN, 我告诉你),可以获取Windows和Office的下载地址;
使用KMS激活的时候,需要输入或替换微软官方密钥;如果用上面写的VOL版本 激活失败,也可以按照下面方法替换密钥。
微软官方密钥
找到并确定Windows操作系统和Office软件的版本(查看 Windows 和 Office 版本),和对应的密钥,然后进入下一步。
Windows
这里以Windows 10 专业版(Pro,MSDN Multiple Editions里面有专业版和家庭版)为例,
找到对应密钥为:W269N-WFGWX-YVC9B-4J6C9-T83GX
,
然后用管理员身份打开命令提示符,运行下面命令:
cd /d "%SystemRoot%\system32"
slmgr.vbs /skms kms.onebox.site
替换密钥:
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
激活:
slmgr.vbs /ato
查看激活状态:
slmgr.vbs /xpr
slmgr.vbs /dlv
这就激活成功了,在设置中查看一下激活状态:
Office MSDN/零售版
MSDN/零售版 Office 直接激活会失败,必须先通过下面命令转为 VOL
这里以MSDN下载的Office Professional Plus 2016
专业增强版为例,根据版本(x64/x86),将下列代码保存为.bat执行转换
x64
@echo off :ADMIN openfiles >nul 2>nul ||( echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" >nul 2>&1 goto:eof ) del /f /q "%temp%\getadmin.vbs" >nul 2>nul for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G pushd "%~dp0" Title Office 2016 Retail to Volume License Converter echo Press Enter to start VL-Conversion... echo. pause echo. cd /D "%SystemRoot%\System32" if %win% GEQ 9200 ( cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-bridge-office.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-root.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-root-bridge-test.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-stil.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-ul.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-ul-oob.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles%\Microsoft Office\root\Licenses16\pkeyconfig-office.xrm-ms ) if %win% LSS 9200 ( cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-bridge-office.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-root.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-root-bridge-test.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-stil.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-ul.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\client-issuance-ul-oob.xrm-ms cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles%\Microsoft Office\root\Licenses16\pkeyconfig-office.xrm-ms ) echo. echo Retail to Volume License conversion finished. echo. pause
x86
@echo off :ADMIN openfiles >nul 2>nul ||( echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" >nul 2>&1 goto:eof ) del /f /q "%temp%\getadmin.vbs" >nul 2>nul for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G pushd "%~dp0" Title Office 2016 Retail to Volume License Converter echo Press Enter to start VL-Conversion... echo. pause echo. cd /D "%SystemRoot%\System32" if %win% GEQ 9200 ( cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms" cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-bridge-office.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-root.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-root-bridge-test.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-stil.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-ul.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-ul-oob.xrm-ms cscript slmgr.vbs /ilc "%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\pkeyconfig-office.xrm-ms ) if %win% LSS 9200 ( cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProjectProVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms" cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-bridge-office.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-root.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-root-bridge-test.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-stil.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-ul.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\client-issuance-ul-oob.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\pkeyconfig-office.xrm-ms ) echo. echo Retail to Volume License conversion finished. echo. pause
找到对应密钥为:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
,
用管理员身份打开命令提示符(CMD),进入Office软件安装目录(示例安装的是64位的Office 2016):
cd /d "%ProgramFiles%\Microsoft Office\Office16"
不确定Office软件版本,可以打开例如Word查看(参考传送门);或者在资源管理器中进入%ProgramFiles%\Microsoft Office
这个目录查看,目录中有OSPP.VBS
,也可以通过搜索。
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /sethst:kms.onebox.site
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
如果还是失败,那很不幸,我没有办法了,密钥不匹配。
附:VOL版本 下载
Office 2016
SW_DVD5_Office_Professional_Plus_2016_64Bit_ChnSimp_MLF_X20-42426.ISO (1.05 GB):
- 文件: SW_DVD5_Office_Professional_Plus_2016_64Bit_ChnSimp_MLF_X20-42426.ISO
- 大小: 1123452928 字节
- MD5: 60DC8B1892F611E41140DD3631F39793
- SHA1: AEB58DE1BC97685F8BC6BFB0A614A8EF6903E318
- CRC32: 8D8AC6D1
SW_DVD5_Office_Professional_Plus_2016_W32_ChnSimp_MLF_X20-41351.ISO (940.74 MB):
- 文件: SW_DVD5_Office_Professional_Plus_2016_W32_ChnSimp_MLF_X20-41351.ISO
- 大小: 986441728 字节
- MD5: 49D97BD1B4DFEAAA6B45E3DD3803DAC1
- SHA1: 0218F50774AAB63AF7755B0986CDB9972B853E44
- CRC32: FF96B0B5
更多:http://bbs.pcbeta.com/viewthread-1642886-1-1.html
KMS服务器
- kms.onebox.site
- kms.moeclub.org
- kms.nases.win
- kms.03k.org
注意事项
- KMS激活方式的有效期是180天;
- 系统会每隔一个礼拜自动连接KMS服务器进行续期,只要KMS服务器保持在线,无需手动操作
标签:cscript,Office,Windows,vbs,KMS,ms,root,Microsoft 来源: https://www.cnblogs.com/ejiyuan/p/10978181.html