Win7_KMS_激活脚本
2021-02-19 23:19
标签:地址 fine led nal else col 指定 for script echo :::::::::::::::::::::::::::::::::::::::::::::::: :: 如果激活失败,可能是因为连不到KMS服务器了, set KMS_Sev=172.19.34.146 ::======================= 以下内容无需更改 ====================== set Professional=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 for /f "tokens=3 delims= " %%i in (‘reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID"‘) do set EditionID=%%i if defined %EditionID% ( :adminchk Win7_KMS_激活脚本 标签:地址 fine led nal else col 指定 for script 原文地址:http://blog.51cto.com/10981246/2062142
title KMS_Activation for Windows 7 - (Comlan)
echo :: 自动检查 Win7 的版本,导入相应的 KMS 密钥 ::
echo :: ::
echo :: 然后连接指定的 KMS 服务器激活 Win7 ::
echo :: ::
echo :: 2017-10 ::
echo ::::::::::::::::::::::::::::::::::::::::::::::::
echo.&echo.
:: 你仅需修改下面的KMS服务器地址
call :adminchk
set ProfessionalN=MRPKT-YTG23-K7D7T-X2JMM-QY7MG
set ProfessionalE=W82YF-2Q76Y-63HXB-FGJG9-GF7QX
set Enterprise=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
set EnterpriseN=YDRBP-3D83W-TY26F-D46B2-XCKRJ
set EnterpriseE=C29WB-22CC8-VJ326-GHFJW-H9DH4J
cscript //Nologo %windir%\system32\slmgr.vbs /ipk !%EditionID%!
cscript //Nologo %windir%\system32\slmgr.vbs /skms %KMS_Sev%
cscript //Nologo %windir%\system32\slmgr.vbs /ato
) else (
echo.&echo Not found DEFINED Key: "%EditionID%".
echo.
)
pause
exit
reg query "HKU\S-1-5-19" >nul 2>nul || (
cls&echo.&echo Run as ADMINISTRATOR, Pls.
echo.&echo Press any key to exit.
echo.&pause>nul
exit)
goto :EOF
上一篇:apiCloud 双击事件
下一篇:前后分离模型之封装 Api 调用