Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I mistakenly mapped my P: drive in Windows 7 to a useless network share, and for the life of me I can't remove the network drive. It was set to "reconnect at login" and it seems impossible to remove. I've tried all solutions posted at this similar question but none have worked after reboot.

I've tried:

  • "Disconnect" from the right click menu in Computer (this worked for other mapped drives, not for this one)

  • Disconnecting the drive and remapping a drive to that letter with the "reconnect at login" option disabled. On restart the original drive reappeared.

  • net use /d z: deletes the drive but it comes back at login.

  • net use z: \\server\path /persistent:no was another suggestion, I tried deleting the drive with the above command, then remapped it using this command, didn't work. I think this is the same operation.

  • net use z: /d /y

  • reg delete HKCU\Network\Z /f Turns out this key doesn't exist, there is no P in my HKEY_CURRENTUSER\NETWORK\ key. But the drive still merrily shows up every reboot.

What else could cause this drive to keep showing up and how can I get rid of it?

Update: When booting in safe mode with networking the bad drive doesn't appear at all, though my other network drives do. Rebooting back to normal mode the drive is back as usual.

The drive does not show up for users other than myself.

share|improve this question
    
net use /delete P: should work, you may want to try it booted up in safe mode. –  N4TKD Sep 26 '11 at 19:13
    
@JohnDR I tried it in safe mode, the drive doesn't even appear in safe mode (with networking) though all my other network drives appear. net use /delete obviously didn't work as the drive didn't exist, but after a reboot it's back. I don't know where the mapping is stored since it's not in HKEY_CURRENT_USER... –  Ben Brocka Sep 26 '11 at 19:31
    
Have you tried mapping another folder(resource) to the drive letter P? –  N4TKD Sep 26 '11 at 20:03
    
Yes, I've removed P and replaced it with another folder, works until restart, at which point it turns back to the junk folder. I also tried mapping it to another folder and disconnecting it while it's the other folder; at restart it's always back to the junk folder. –  Ben Brocka Sep 26 '11 at 20:21
    
One last shot try "NET USE * /DELETE /Y" which wipe all persistent drive maps make sure you use caps. –  N4TKD Sep 26 '11 at 21:26

1 Answer 1

Try searching your registry for the share name.

Do you have anything in the Startup folder?

There are multiple places where Windows looks to execute programs during startup - take a look at this http://www.bleepingcomputer.com/tutorials/windows-program-automatic-startup-locations/

share|improve this answer
    
Thanks for the tip, found reference to it in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU, deleted the corresponding key...the drive is still there though. I don't have much on start up that would do anything like that, I'm looking at the Offline Files Sync thing to see if it might be doing it though. –  Ben Brocka Sep 26 '11 at 19:45
    
What happens if you logon to the computer under a different account? –  bryan Sep 26 '11 at 19:48
    
no network drives at all, which is correct for that user. –  Ben Brocka Sep 26 '11 at 19:54
    
last resort - add a batch file to your startup to delete the mapping :( –  bryan Sep 26 '11 at 20:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.