title: login to remote using "mstsc /admin" with password
body: <p>I want to use <code>mstsc /admin</code> to login to a server silently. My batch file reads the code as</p>
  
  <pre><code>mstsc /v:xxx.xxx.xxx.xxx /admin
  </code></pre>
  
  <p>But it ask me to enter password. Can anyone help me to skip this step?</p>
  
  <p>I went on to Google and found <a href="http://www.poshpete.com/powershell/passing-username-and-passwords-to-remote-desktop-rdp-automatically" rel="noreferrer">this site</a>. But I am very new to this stuff (scripting) and could not understand what to do with given code. Is it a <code>vbscript</code> file? Can I do the same thing with a batch file. Please elaborate and I request you to spoon feed. This is not my arena but still I am pushed to fight without weapons.</p>
  
  <p>My basic need is to kick off all users from a remote desktop except mine to perform some maintainable work. Thanks.</p>