title: Unable to supply password to runas from commandline
body: <p>I am unable to supply password to runas from commandline</p>
  
  <p>I have tried the following</p>
  
  <pre><code>cmd /C echo my_admin_password | runas /user:DOMAIN\my_admin_login c:\test.bat
  </code></pre>
  
  <p>and</p>
  
  <pre><code>echo my_admin_password | runas /user:DOMAIN\my_admin_login c:\test.bat
  </code></pre>
  
  <p>And the error I get is</p>
  
  <p>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.</p>
  
  <p>How do I fix this?</p>