4 ms·
runas request password. And I don't want to touch my mouse. Many of implementation doesn't handle stdin/stdout/stderr.
by mattn_jp 9y ago
runas request password. And I don't want to touch my mouse. Many of implementation doesn't handle stdin/stdout/stderr.
- Jaruzel 9y agoYou can call 'runas' via an API at code level that allows you to specify a password. There's quite a few tools out there that do it. I used to host mine on my website but it caused all those website classification systems to classify my domain as 'hacking tools' so I had to remove it. :(
- mattn_jp 9y agoIf you allow you to enter a password, you can use runas.exe which is provided by Microsoft.
- Jaruzel 9y agoRunAs.exe only allows you enter a password interactively. If you want to elevate with RunAs in a script and pre-specify the password[1], you can't do it. -- [1] Yes, I know this is awful security, but sometimes you have no choice.
- pawadu 9y ago> You can call 'runas' via an API at code level that allows you to specify a password. Wait, then where does the whole UAC thing comes from??