menu E4b9a6's blog
rss_feed
E4b9a6's blog
有善始者实繁,能克终者盖寡。

WindowsKMS激活脚本

作者:E4b9a6, 创建:2021-06-16, 字数:924, 已阅:131, 最后更新:2021-06-16

这篇文章更新于 1256 天前,文中部分信息可能失效,请自行甄别无效内容。

KMS激活Windows指令如下,适用于Windows8/8.1/10/11

Batchfile
slmgr.vbs -ipk [windows key]
slmgr.vbs -skms [kms-server]
slmgr.vbs -ato

下面的命令可另存为一个bat文件,然后直接运行再依次输入Windows Key以及KMS地址即可

Batchfile
@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

[[replyMessage== null?"发表评论":"发表评论 @ " + replyMessage.m_author]]

account_circle
email
web_asset
textsms

评论列表([[messageResponse.total]])

还没有可以显示的留言...
gravatar
[[messageItem.m_author]] [[messageItem.m_author]]
[[messageItem.create_time]]
[[getEnviron(messageItem.m_environ)]]
[[subMessage.m_author]] [[subMessage.m_author]] @ [[subMessage.parent_message.m_author]] [[subMessage.parent_message.m_author]]
[[subMessage.create_time]]
[[getEnviron(messageItem.m_environ)]]