title: How to run as different user without prompting user batch
body: <p>I have a batch file that runs another batch file as a different user. </p>
  
  <p>I also need to run the calling batch file remotely. Locally I can bypass having to enter the password with the /savecred option but then when I run the batch remotley, I still get prompted for the password but it would appear the connection times out because I'm brought back to the powershell prompt on the machine i'm connecting from.</p>
  
  <p>my batch looks like this:</p>
  
  <pre><code>runas.exe  /env /savecred /user:sqlsvr_dba ".\myBatch.bat"
  </code></pre>
  
  <p>How can I run the remote batch on my local machine without having to enter the password? I've been trying to use powershell for this.</p>