Script for Mapping drives in vb script
Posted on 2006-05-11
Hey guys i have a vbscript that i am currently using as logon script for a client. Right now this is the script that i am using(below) but instead of auto deleting and remapping the drives i want the script to check to see if the mapping is correct and if it is leave it alone but if it isnt correct then the script will delete and remap.
Any help would be graciously appreciated !!!
On Error Resume Next
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "H:", "\\win2003\USERS"
WshNetwork.MapNetworkDrive "I:", "\\win2003\COMMON"