On Error Resume Next
Set objNetwork = CreateObject(“Wscript.Network”)
Set colDrives = objNetwork.EnumNetworkDrives
For i = 0 to colDrives.Count-1 Step 2
objNetwork.RemoveNetworkDrive colDrives.Item(i)
Next
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.