Sign in with
Sign up | Sign in
Your question

Disconnected network drives re-connects at login

Last response: in Windows XP
Share
August 2, 2011 1:20:46 PM

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?
August 2, 2011 2:12:48 PM

Open a command prompt. Type in net use and find the drive you want to disconnect. Now type in net use <drive> /DELETE /PERSISTENT:NO where the drive is replaced by a full UNC path. i.e \\computer_name\share_name\volume
m
0
l
August 2, 2011 2:30:38 PM

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?
m
0
l
Related resources
August 2, 2011 3:14:23 PM

scottw182 said:
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.
m
0
l
August 2, 2011 3:20:40 PM

"Access is denied."

I have access to the folder I'm mapped to, but not the whole drive.
m
0
l
August 2, 2011 3:25:51 PM

Find cmd.exe or command.exe, right click it and select "run as" and run it as administrator, then try the net use command. If you do not have administrative access on this machine, you will need your IT guy or admin to do it for you.
m
0
l
August 2, 2011 5:05:46 PM

Running it as an administrator doesn't bring up the network drives associated with my user name.
m
0
l
August 2, 2011 5:23:54 PM

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.
m
0
l
August 2, 2011 5:28:40 PM

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.
m
0
l
August 2, 2011 5:36:59 PM

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.
m
0
l
August 2, 2011 5:58:28 PM

It's a work computer, I was just trying to fix it myself without having to bug them. Thanks.
m
0
l
!