I got the error below. I tried putting the echo command on the line before the runas command. There is no error but the comand dosen't work.
W:\Documents and Settings\ta83606\Desktop>echo pw | runas /user:erdhfdctx015\eccc\ notepad.exe
Enter password for erdhfdctx015\eccc\:
RUNAS ERROR: Unable to change echo mode
W:\Documents and Settings\ta83606\Desktop>pause
Press any key to continue . . .
Sorry, i tried it with the runas command and it also failed. We use the command every day with the Su-Service, and there it works. So i thought this is also possible with the runas command.
maybe you can use the Su, the service does the same as runas and you can use it under NT4.
The RunAs command is an Interactive Utility only. It will not accept Piping or Echoing of the password. There are several utilities that can not only accept the password but also encrypt it as well. Here are a few links.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.