title: How to run IE under different credentials?
body: <p>For automatic testing we want to use a VBScript which starts an instance of internet explorer and uses different credentials. When we visit our site, Windows credentials are used to validate the login (e.g., if you store the credentials in credential manager, you can login automatically). We want to do the same with VBScript :</p>
  
  <pre><code>Dim oShell
  set oShell= Wscript.CreateObject("WScript.Shell")
  oShell.Run "RunAs /profile /user:[TheUser] ""C:\Program Files\Internet Explorer\iexplore.exe"
  WScript.Sleep 100
  oShell.Sendkeys "[password]~"
  Wscript.Quit 
  </code></pre>
  
  <p>This Script does login and start iexplorer, but when we visit the site it just asks for credentials as if nothing happened.</p>
  
  <p>Does anyone know how to pass credentials to internet explorer (as if they were in the credential manager), and login automatically? (This would cut a significant portion of our time on the regression tests, since logging in via the popup screen takes very long.)</p>