title: Is it possible to capture a password in cmd Net Use?
body: <p>bat script to get a users name and password to connect to shared network drives, the key element is:</p>
  
  <pre><code>net use u: \\server\users\%UserName% * /user:%UserName% /persistent:no
  </code></pre>
  
  <p>This works great as the password prompt is requested by the "*" which is hidden from view and I have already captured the user's login name. Mapping to other locations on the same server works without any further user input but as soon as I map to another server the user will be prompted to input their password again. </p>
  
  <p>Is there anyway I can capture the entry typed at "*" to apply to a string for the other servers?</p>
  
  <p>Thanks.</p>