I found this script on the net and it works great except for one issue. If the host already has a drive connected it gives back an error and doesn't map the drive. What I would like is the script to disconnect the F: and N: then map them to the new location. Below is the script.
Dim objNetwork, strRemotePath1, strRemotePath2
Dim strDriveLetter1, strDriveLetter2
strDriveLetter1 = "F:"
strDriveLetter2 = "N:"
strRemotePath1 = "\\vcna-server-06\root"
strRemotePath2 = "\\vcna-server-04\projects"
Set objNetwork = CreateObject("WScript.Network")
' Section which maps two drives, F: and N:
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
Any help would be great. Thanks.