Unable to supply password to runas from commandline
问题 I am unable to supply password to runas from commandline I have tried the following cmd /C echo my_admin_password | runas /user:DOMAIN\my_admin_login c:\test.bat and echo my_admin_password | runas /user:DOMAIN\my_admin_login c:\test.bat And the error I get is Attempting to start c:\test.bat as user "DOMAIN\my_admin_login" ... RUNAS ERROR: Unable to run - c:\test.bat 1326: Logon failure: unknown user name or bad password. How do I fix this? 回答1: Take a look at this link: runas utility It's a