I am trying to setup a login script to map an I: drive.
I have used this in the past with no problem:
net use I: /delete
net use I: \\server1\share1
I will get "the network connection could not be found" if there is no mapping already. If there is a mapping that does exist for the I drive, it will not disconnect it and reconnect the new one to \\server1\share1.
Is there a way first delete a network drive and get past any errors if it's not already mapped so that the mapping can continue?