I have tried this before. You can call a vbscript before
the run as command. The vbscript will send the password
keys after you have been prompted. Below is an example
rem call path to vbscript (example only)
\\server\share\vbscript
run as /user:domain\adminaccount "program.exe"
exit
vbscript contents should be
set WshShell = CreateObject("WScript.Shell")
WScript.Sleep 1
WshShell.SendKeys "PASSWORD"
WScript.Sleep 1
WshShell.Sendkeys "{ENTER}"
set WshShell = nothing
the only value you have to enter is the password. only
problem with this is you have a password for an actual
account exposed.
have fun.
-----Original Message-----
But I also want to add the password in the command?
runas is allways asking for the password