作者:E4b9a6, 创建:2021-06-16, 字数:924, 已阅:131, 最后更新:2021-06-16
KMS激活Windows指令如下,适用于Windows8/8.1/10/11
slmgr.vbs -ipk [windows key]
slmgr.vbs -skms [kms-server]
slmgr.vbs -ato
下面的命令可另存为一个bat文件,然后直接运行再依次输入Windows Key以及KMS地址即可
@ECHO OFF&PUSHD %~DP0
setlocal EnableDelayedExpansion&color 3e & cd /d "%~dp0"
title Windows Active
%1 %2
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&goto :eof
:runas
echo.
echo Windows Active
echo.
echo --------------------------------------------------------------------------------
echo Windows Active Script for 10/11
echo.
echo. -----------------------------------------------------------------------------
set /p windowsKey=Input Windows Key:
set /p serverUrl=Input KMS Url:
slmgr.vbs -ipk %windowsKey%
slmgr.vbs -skms %serverUrl%
slmgr.vbs -ato
echo Active completed