Disconnect shared drives permanently


  1. Posts : 4
    Windows 7 Professional
       #1

    Disconnect shared drives permanently


    I am home user running Windows 7 professional and have mapped a network drive (Y:) that points to a folder on a LaCie NAS on my LAN. When the mapping was setup, the "Reconnect at Logon" option was selected.

    Now I want to permanently disconnect that mapping. I have tried:

    1) Disconnecting in Windows Explorer
    2) NET USE /PERSISTENT:NO
    3) NET USE Y: /D

    The drive disconnects no problem, but when I login again, the mapping is back. How do I get rid of this mapping PERMANENTLY?

    Thanks.
      My Computer


  2. Posts : 548
    W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
       #2

    What happens if you disconnect, then remap and clear the "reconnect at logon" check box, then disconnect?
      My Computer


  3. aem
    Posts : 2,698
    Windows 7 Ultimate 64Bit
       #3

    Do a "net use" command and see what is there.

    then "net use /delete <drive letter>"

    Eg if your y drive is set to a \\name\share

    net use /delete y:
      My Computer


  4. Posts : 548
    W7 Ultimate 64bit W7 Premium 64bit W7 Premium 32bit WXP Home 32bit
       #4

    aem said:
    Do a "net use" command and see what is there.

    then "net use /delete <drive letter>"

    Eg if your y drive is set to a \\name\share

    net use /delete y:
    I should write that one down. Good info!
      My Computer


  5. Posts : 4
    Windows 7 Professional
    Thread Starter
       #5

    1) Disconnect, remap, clear reconnect at logon - it still reconnects the mapped drive

    2) net use /delete y: - will try it and see - let you know.
      My Computer


  6. Posts : 4
    Windows 7 Professional
    Thread Starter
       #6

    3) net use /delete y: - unmaps the drive but it just reconnects at logon.

    Any other ideas?
      My Computer


  7. aem
    Posts : 2,698
    Windows 7 Ultimate 64Bit
       #7

    So when you restart machine, it shows up under net use still?

    In Windows Explore, Tools, click Disconnet network drives. Is there anything for you to disconnect?

    Last resort, is the registry.

    HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\Explorer\Map Network Drive MRU.

    Delete what you need in there.
      My Computer


  8. Posts : 4
    Windows 7 Professional
    Thread Starter
       #8

    I tried all these - absolutely no joy. It still reconnected. Don't like messing with registry - not enough of an expert.

    I deleted the share on the NAS (it was only a backup) and that prevented the re-connecting of the mapped drive. Still do not know what caused this to happen and deleting the share is a bit of a sledgehammer to crack a nut, but it worked.

    Strange thing is that I have another share on the same NAS and I can disconnect/reconnect that at will without it automatically reconnecting at logon.

    Bizarre! Hey ho! Thanks for the help - Happy New Year!
      My Computer


  9. aem
    Posts : 2,698
    Windows 7 Ultimate 64Bit
       #9

    You don't need to be an expert to go here and right-click delete item in the registry.

    HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\Explorer\Map Network Drive MRU.

    To get bring up the Registry, Start > type regedit (in search field) and enter.
      My Computer


  10. Posts : 1
    Windows 7 Ultimate x64
       #10

    Ok, I realize this is an old thread, but there was no "resolution" to the problem in the thread.

    I was having this same problem my self, and the run "net use" command in this thread gave me the answer in my case...



    Status Local Remote Network

    -------------------------------------------------------------------------------
    Unavailable M: \\192.168.0.253\home NFS Network
    Unavailable Z: \\192.168.0.253\user Microsoft Windows Network
    The command completed successfully.



    I was trying to disconnect M: but no matter how many times I did it in Windows Explorer, it would be back after reboot. Also "net use /delete M:" did not do the trick.

    But what I realized after running "net use" and getting the above list, was that the mount was of type NFS, which lead me to the soloution which was to run the nfs umount command.

    I ran "umount M:" and the mount is bothering me no more!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:08.
Find Us