title: BAT file to map to network drive without running as admin
body: <p>I'm trying to create a .bat file that will map to a network drive when it is clicked (it would be even better if it could connect automatically on login if connected to the network, otherwise do not connect)</p>
  
  <p>What I have so far is:</p>
  
  <pre><code>net use P: "\\server\foldername\foldername"
  </code></pre>
  
  <p>Is there a way that I can create this so the users will not have to right click and run as an administrator? I would like it if they could just click the .bat file and it will map for them.</p>