I have a VB script that connects my network drives without a problem. I added a section so i can remove certain drive letters and where they map to. I need to do this so i can remap the drives somewhere else the section i added to do the remove is below but it is not working.
Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D
Set oNet = CreateObject("Wscript.Network")
sUserID = ""
On Error Resume Next
Do While sUserID = ""
sUserID = oNet.UserName
On Error Goto 0