Wrong network share mapping

mickrick

Distinguished
Nov 3, 2001
61
0
18,640
OK, so I'm completely at a loss for how this is happening and its driving me nuts.

I bought a WD MyBook USB 3 external hdd to daisychain on my WD MyCloud NAS. I originally had 3 shares on the MyCloud, which were shared as O, P and Q on my netword pc's. A .bat file was placed in the Startup folder of each pc, which mapped the shares. The .bat entries were:

net use O: /persistent:NO \\192.168.0.30\Public\E-Applications
net use P: /persistent:NO \\192.168.0.30\Public\F-Documents_and_Photos
net use Q: /persistent:NO \\192.168.0.30\Public\G-Movies_TV_and_Music

When I copied the data across to the MyBook, I re-assigned the shares as:

net use O: /persistent:NO \\192.168.0.30\My_Book\Public\E-Applications
net use P: /persistent:NO \\192.168.0.30\My_Book\Public\F-Documents_and_Photos
net use Q: /persistent:NO \\192.168.0.30\My_Book\Public\G-Movies_TV_and_Music

But when I start the pc's up, all but one assign the shares correctly. On the other pc, it still maps Q as the original share. I have tried disconnecting the share in "This PC", assigning a completely different folder as the share and then disconnecting etc. But when I leave it to be assigned by the .bat file, it always reverts to the original share.

Can someone help me out here as I just can't see how the Windows is mapping the share as anything other than what it is told to by the .bat file.
 
Solution
Take the batch file out of the startup folder temporarily and reboot and log into the machine. Check for mapped drives in Windows Explorer for Q: drive and whether or not it is persisted.

You could also do a net use /delete on the Q: drive in the batch file before trying to map it. Put a pause in the batch file immediately after the line mapping the drive to see if it displays an error.

It could also be a permissions problem. Remember that mappings are saved per user so logging in as a different user could have different mappings. So you need to check mappings and permissions while logged in as the user that is having the problem.
Take the batch file out of the startup folder temporarily and reboot and log into the machine. Check for mapped drives in Windows Explorer for Q: drive and whether or not it is persisted.

You could also do a net use /delete on the Q: drive in the batch file before trying to map it. Put a pause in the batch file immediately after the line mapping the drive to see if it displays an error.

It could also be a permissions problem. Remember that mappings are saved per user so logging in as a different user could have different mappings. So you need to check mappings and permissions while logged in as the user that is having the problem.
 
Solution


 

TRENDING THREADS