title: VBScript map network drive (domain)
body: <p><strong>PC1</strong> is where the script will run, and it <strong>is in a domain.</strong><br>
  <strong>PC2</strong> holds the <code>share</code> folder and it's <strong>NOT in any domain.</strong>  </p>
  
  <pre><code>Set WshNetwork = WScript.CreateObject("WScript.Network")
  WshNetwork.MapNetworkDrive "M:", "\\192.168.0.10\share", administrator, password
  </code></pre>
  
  <p><strong>What else does the script needs to map the drive?</strong></p>
  
  <hr>
  
  <p>Edit: This is sort of a duplicate of <a href="https://stackoverflow.com/questions/38921116/vbscript-access-network-share-from-domain">this question</a> , but i tried to simplify things.</p>