title: Difference between runas.exe and Start-Process -Credential
body: <p>I am playing around with setting up some scripts on a vpn on a client's network. This client generally assigns an ActiveDirectory account on their network and use it to manage permissions (eg. to databases). Ok, that makes sense.</p>
  
  <p>But here is something that confuses me:</p>
  
  <pre><code>start-process runas.exe "/user:CLIENTDOMAIN\George.Mauer /netonly W:\tools\LINQPad4\LINQPad.exe
  </code></pre>
  
  <p>queries for a password and runs just fine (and I can access the database)</p>
  
  <p><strong>But</strong></p>
  
  <pre><code>Start-Process W:\tools\LINQPad4\LINQPad.exe -Credential (Get-Credential)
  </code></pre>
  
  <p>and entering <code>CLIENTDOMAIN\George.Mauer</code> and my password at the popup prompt always results in an error</p>
  
  <pre><code>Start-Process : This command cannot be run due to the error: The user name or password is incorrect.
  </code></pre>
  
  <p>Are these not the same thing? What's the difference between <code>runas</code> and <code>-Credential</code>? And a secondary question - how do I <code>Start-Job</code> with my <code>CLIENTDOMAIN\George.Mauer</code> credential?</p>