sTe Posted May 27, 2007 Posted May 27, 2007 I have some code that runs in VBSCript.Runas.vbsSet objShell = CreateObject("Shell.Application")strApplication="CMD.EXE"strArguments=""objShell.ShellExecute strApplication, strArguments, "", "runas"Does anyone know if I can pre-populate the box that appears "The following user" with a specific username?
#rootworm Posted May 27, 2007 Posted May 27, 2007 (edited) oops, sorry.i read your post too quickly. i thought you were just running "cmd.exe /c runas" Edited May 29, 2007 by #rootworm
sTe Posted May 27, 2007 Author Posted May 27, 2007 I was looking to get away from using the DOS version of RunAs, thanx for the reply though.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now