I have been using some simple VBScript to identify a users mapped drives but have found all sample scripts I have tried omit any Mapped Drive that is Unavailable (as listed in CMD Net Use)
Because I need to remove such drives before remapping how can I identify any that are already unavailable?
Sample script lists drives nicely but only those with a Status of OK:
First script shows just what I need, second script is faster but omits anything Unavailable
Now I have identified which mapped drives are Unavailable I can't find any way of scripting their removal
Normal delete using "objNetwork.RemoveNetworkD
Is there a way to remove an identified objItem.LocalName as found in your first script?