I am looking to create a logon script that will remove all mapped drives from the client PC and then map the drives stated in the same script. Here is what I have:
On Error Resume Next
set Net = CreateObject("Wscript.Network")
set Drives = Net.EnumNetworkDrives
for each item in Drives
if right(item,1) = ":" then
Net.MapNetworkDrive "H:", "\\10.0.0.2\Departments"
Net.MapNetworkDrive "X:", "\\10.0.0.103\Syteline.map"
Can someone please confirm if this script will do what I am looking for?