堡垒机直接调用RUN

两个脚本

 

 

 Run.vbe   参考https://blog.csdn.net/skypeGNU/article/details/12708221

set ws=wscript.createobject("wscript.shell")  
ws.run "CmdCalled.bat /start",0

 

被调用脚本:CmdCalled.bat

@echo off
mstsc

 

双击执行 Run.vbe后

 

posted @ 2019-09-04 19:49  Study~Column  阅读(816)  评论(0编辑  收藏  举报