Disconnected network drives re-connects at login

scottw182

Distinguished
Mar 5, 2010
48
0
18,530
I'm trying to disconnect a network drive but it still reconnects when I login. I've right-clicked it and selected "disconnect" as well as used "Disconnect Network Drive" under "Tools" and selected it from the list. How can I disconnect it permanently?
 

scottw182

Distinguished
Mar 5, 2010
48
0
18,530
It says "The system cannot find the file specified" but I'm sure I typed everything correctly. One of the folders in the path has a space in it, could that be what's messing me up?
 


Yes, I believe so. If it has spaces in it, it will need quoted as in:

"\\computer_name\share_name\volume"

Type it exactly as it appears when you run the net use command except use quotes around it.
 
No, I meant log into your account, but use the run as command to launch the command prompt. Now you can use the net use command but it will run as an administrator. You can't actually log into the administrator account because network drive mappings are per user as you just found out.
 

scottw182

Distinguished
Mar 5, 2010
48
0
18,530
Yes, I'm logged into my account, I right-clicked cmd.exe, selected "run-as", then selected the administrator account and entered the password for it. Once I got to the command screen I tried to run net use again and it's not bringing up any network drives. I assumed that's because it's looking for network drives under the administrator account instead of my account. If not, why am I not seeing them now?

Thanks for all your help.
 
Doh! You're correct. When you "run as" admin it no longer sees mapped shares. I guess you can only do it if the drive is mapped, not just a directory as you stated. Is this a work machine or home? If it's a work computer, you may have to get your IT guys to remove the mapping for you as it's probably something set in the group policy editor or the local security editor.