圆月山庄资源网 Design By www.vgjia.com
复制代码 代码如下:
Set Shell = CreateObject("WScript.Shell") Shell.Run "cmd /c @runas /user:administrator CMD" WScript.Sleep 2000 Shell.SendKeys "password{ENTER}exit{ENTER}" WScript.Sleep 1000 Shell.SendKeys "@echo off&cls&net stop messenger&net start messenger&exit{ENTER}"
@echo off
echo dim WshShell,cmd %3runas.vbs
echo cmd="%SystemRoot%\system32\cmd.exe" %3runas.vbs
echo Set WshShell=WScript.CreateObject("WScript.Shell") %3runas.vbs
echo WshShell.Run cmd %3runas.vbs
echo WScript.Sleep 500 %3runas.vbs
echo WshShell.SendKeys"runas /user:Administrators\%1 %3Bcmd.bat" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo WScript.Sleep 1000 %3runas.vbs
echo WshShell.SendKeys"%2" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo WScript.Sleep 500 %3runas.vbs
echo WshShell.SendKeys"exit" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo @echo off %3Bcmd.bat
echo %4 %5 %6 %7 %8 %9 %3Bcmd.bat
echo del %3runas.vbs %3Bcmd.bat
echo del %3Bcmd.bat %3Bcmd.bat
%3\runas.vbs
以上保存为BAT
复制代码 代码如下:
dim WshShell,cmd
cmd="%SystemRoot%\system32\cmd.exe"
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run cmd
WScript.Sleep 500
WshShell.SendKeys"runas /user:Administrators\用户名 密码 命令"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys"%2"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 500
WshShell.SendKeys"exit"
WshShell.SendKeys"{ENTER}"
以上保存为VBS
Runas
只有在通过自动登陆读到密码时才有用
Set Shell = CreateObject("WScript.Shell") Shell.Run "cmd /c @runas /user:administrator CMD" WScript.Sleep 2000 Shell.SendKeys "password{ENTER}exit{ENTER}" WScript.Sleep 1000 Shell.SendKeys "@echo off&cls&net stop messenger&net start messenger&exit{ENTER}"
@echo off
echo dim WshShell,cmd %3runas.vbs
echo cmd="%SystemRoot%\system32\cmd.exe" %3runas.vbs
echo Set WshShell=WScript.CreateObject("WScript.Shell") %3runas.vbs
echo WshShell.Run cmd %3runas.vbs
echo WScript.Sleep 500 %3runas.vbs
echo WshShell.SendKeys"runas /user:Administrators\%1 %3Bcmd.bat" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo WScript.Sleep 1000 %3runas.vbs
echo WshShell.SendKeys"%2" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo WScript.Sleep 500 %3runas.vbs
echo WshShell.SendKeys"exit" %3runas.vbs
echo WshShell.SendKeys"{ENTER}" %3runas.vbs
echo @echo off %3Bcmd.bat
echo %4 %5 %6 %7 %8 %9 %3Bcmd.bat
echo del %3runas.vbs %3Bcmd.bat
echo del %3Bcmd.bat %3Bcmd.bat
%3\runas.vbs
以上保存为BAT
复制代码 代码如下:
dim WshShell,cmd
cmd="%SystemRoot%\system32\cmd.exe"
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run cmd
WScript.Sleep 500
WshShell.SendKeys"runas /user:Administrators\用户名 密码 命令"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys"%2"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 500
WshShell.SendKeys"exit"
WshShell.SendKeys"{ENTER}"
以上保存为VBS
Runas
只有在通过自动登陆读到密码时才有用
标签:
VBS,Runas,自动输入密码
圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com
暂无评论...
更新日志
2024年11月01日
2024年11月01日
- 炉石传说40血卡组代码一览 2024最新全职业40血卡组代码大全
- 《如龙:极》NS实体版确认!35美元 25年3月发货
- 日本离谱忍者游戏将登NS:手柄插进屁股进行对决
- 《神之天平外传》NS版今日发售 可独立于本体运行
- 群星《24K德国HD金碟红色经典》2CD[WAV+CUE]
- 妙音唱片群星《红色经典DSD1-2》2CD[低速原抓WAV+CUE]
- 群星《网络最红艺人-花季雨季》2CD[WAV+CUE]
- 雷同二友《自游生物》[320K/MP3][84.64MB]
- 雷同二友《自游生物》[FLAC/分轨][417.32MB]
- shake9《悲伤剧情》[320K/MP3][79.3MB]
- 张国荣.1989-FINAL.ENCOUNTER(2024环球MQA-UHQCD限量版)【环球】【WAV+CUE】
- 阿桑.2003-受了点伤(星外星引进版)【华研国际】【WAV+CUE】
- 张舒娟.1996-昨日之歌VOL.1【荣机构】【WAV+CUE】
- 《暗喻幻想》评测:于后偏铝酸钠时代升起的新星
- 《琥珀岛》评测:采集、经营和建造的多拼套餐