my understanding of the Runas command line prevents this....
you could use WMI to "createProcess" or you can use the schtasks.exe (from xp only) but both will have the limitation that you will have to provide credentials... (you will not be able to inherit them from the logged in user)
if you want you can put a background app in the run key that will function similar to the task scheduler, that reads a flat file to run a task at a given time.... if this is an acceptable solution, I will provide the code for you
Main Topics
Browse All Topics





by: razorback041Posted on 2006-03-07 at 07:00:26ID: 16123926
search for the "runas" command on google
ipt.Shell" )
here is an easy one I found and have used before
Option explicit
dim myShell
set myShell= Wscript.CreateObject("WScr
myShell.Run "runas /user:ACCOUNT ""YOUR EXE"""
WScript.Sleep 100
myShell.Sendkeys "ACCT PASSWORD
Wscript.Quit
the script has to be placed in the same folder as your .exe that you are running
change the variables in all caps to the ones you need.
good luck