Pipe in Password for RUNAS [Archive] - SpeedGuide.net Broadband Community

View Full Version : Pipe in Password for RUNAS


jorefice
03-12-07, 10:29 AM
I understand all the security risks and whatnot in doing this but it cannot be helped. Is there a way to pipe in a password for an account while doing runas in a batch file?

I have tried this (obviously using the real entries)

echo password| runas user:username "program.exe"

and it gives an error. Does anyone know how to pipe in the password with the existing Windows XP Pro cmd prompt?