Windows – Connecting to multiple network shares on the same host using different credentials

network-shareswindows 7

Is it possible to connect to multiple network shares on the same Windows 7 host using different credentials?

Example: Host H has shares \H\A and \H\B. Share A is configured to be only accessible by user account U1 (via Properties>Security tab), and share B is likewise configured to only be accessible by user account U2. I know the credentials for both U1 and U2. Is there some way I can connect or map to both shares simultaneously from my PC?

I've tried simply connecting to one and then connecting to the other, but I get an error message "You do not have permission to access \H\B". I'm never given the option to enter alternate credentials.

Note – I've already read this question, but there the OP is trying to map multiple shares using the same credentials. In my case, I'm attempting to connect/map using different credentials.

Best Answer

You have the same basic problem as the question you linked because you do not map multiple network shares but the same share twice. In your case Windows would identify H as the share and A and B merely as subfolders so it would not let you make multiple connections but reuse the first one (If you used net use to map the second one explicitely specifying a different user you would get the "The network folder specified is currently mapped using a different user name and password." message)

I never found a real way around this, but there is a workaround. Windows seems to be perfectly capable of doing the mapping technically but checks on the name. So if you use the IP address for one folder and the hostname for the other (or if you have the possibility to use aliases for multiple hostnames) it should work.

Related Question