VB Logon Script to delete current network drives an add new ones
Posted on 2007-10-20
We have currently upgraded servers which means all new network drives...etc. So Here is my NEW logon script to map network drives. What I want is for it to delete all network drives and map these ones. If the new ones are already there, then not to error out but to finish..Is this possible, since I know almost nothing of vb scripting! Thanks!
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "Z:" , "\\dataserver\data"
objNetwork.MapNetworkDrive "Y:" , "\\dataserver\files"
objNetwork.MapNetworkDrive "X:" , "\\server01\scan"