I am trying to map a drive like so:
net use \\10.10.10.10\sharename Password /USER:Username /YES
I get a 1219 error telling me that you can't map more than one drive to the same resource. (note I am mapping without a drive letter, because I am using in an SSIS package and I don't know what drive letter will be available at runtime)
But if I try to disconnect the drive like this
net use \\10.10.10.10\sharename /DELETE /YES
It tells me it can't find the network resource.
How can I be mapped to a drive that it can't find? How to get out of this situation?
The user I am using to map the drive is a local user on the remote 10.10.10.10 box.
Thanks