When I log into windows, my system maps a few drives from our server's shares. I have a backup script that I want to run and it maps a few more drives just for the script and then unmaps them when done.
I'm running the following to map: net use z: "\server\share1" /user:myuser password
It then says System error 1219 has occurred. Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. etc
Thing is, I'm using the same user for everything. Why would it give me this error and how do I fix this? I'm using Windows Server 2008 R2 with this script.
net use
without parameters, see if it lists any other connection to that server you might need to delete firstnet use /delete *
and re-run the script to make sure that no other shares were mapped with another user.