Windows 10 Multiple UNC shares to one machine using multiple accounts

The problem is windows does not allow you to specify multiple username/passwords for mapping network drives.

Consider connecting these folders:

\\10.1.1.1\path1  username: sam
\\10.1.1.1\path2  username: bob

When you connect to the first path, it will ask for the username/password for sam.

When you try to connect to the second path, it will simply tell you access is denied because sam cannot access path2.

The fix is to make two different names locally for the network share.

Check to see if you have a file for lmhosts defined.  It will be in this location:%windir%\system32\dirvers\etc\lmhosts

Either append this to the existing file, or create a new file with these contents:


10.1.1.1 share-path1
10.1.1.1 share-path2

Save the file as %windir%\system32\dirvers\etc\lmhosts

Check %windir\system32\drivers\etc\hosts and make the same changes as above.  Either append the two lines or create a new file (you should already have the hosts file).

When I made the change to lmhosts, it did not read the changes until I rebooted.   There may be a way to make windows read the file without rebooting but I was not in a position that rebooting would bother me.