PC1 is where the script will run, and it is in a domain.
PC2 holds the share
folder and it's NOT in any domain.
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "M:", "\\192.168.0.10\share", administrator, password
What else does the script needs to map the drive?
Edit: This is sort of a duplicate of this question , but i tried to simplify things.