Solved How do I REMOVE a Network Drive [and the horse it rode in on]

zapp22

New member
Power User
VIP
Local time
6:14 PM
Messages
730
Location
Tejas, northern Mexico
how?
when I right click this failed network drive experiment, explorer hangs. when I surface the tools menu, I get no "unmount the network drive" ability.

somebody pls shoot this thing!

win7 ultmate x64

I don't want to merely disconnect [which gives an error: network connection does not exist] but to eradicate.

thanks
z
 

My Computer My Computer

Computer Manufacturer/Model Number
HP DC7600, HP DC7600[2], HP DC7100, Samsung NC10
OS
Windows XP Pro SP3, Windows 7 Pro 32-bit, Windows 7 Ultimate 64bit, Windows XP Home SP3
CPU
Pentium 4 3.2GHz, Pentium 4 3.4GHz 64bit, Atom,
Motherboard
Dunno
Memory
4GB matched, 1GB, 2.5GB, 4.0 GB
Graphics Card(s)
Geforce 8400 GS and others
Sound Card
RealteK ALC260 and others
Monitor(s) Displays
Asus HD
Screen Resolution
1920x1080
Hard Drives
WD Caviar 640gb SATA
Cooling
We Be Cool

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gateway DX4831-01e (Mid-Tower Desktop)
OS
Originally Win 7 Hm Prem x64 Ver 6.1.7600 Build 7601-SP1 | Upgraded to Windows 10 December 14, 2019
CPU
Intel i3 530 2.93GHz, 2933MHz 2 Cores 4 Logical Processors
Motherboard
Gateway H57M01 133 megahertz
Memory
6GB of 1,333MHz DDR3 SDRAM
Graphics Card(s)
32MB Intel Graphics Media Accelerator HD IGChip
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Gateway HX2000 20inch TFT active matrix TN
Screen Resolution
1600 x 900 x 59 hertz
Hard Drives
WDC WD10EADS-00M2B0 [HDD] (1000.20 GB) -- drive 0,
HL-DT-ST DVDRAM GH41N [CD-ROM dr]
Four card readers, and Four USB 2.0
PSU
300watts.
Case
Mid-Tower Desktop
Cooling
Stock from Gateway
Keyboard
Natural Ergonomic Keyboard 4000, see Other Info
Mouse
Orig. Gateway wore out now using Insignia USB wired optical
Internet Speed
Vz FIOS 10ms png 57.64Mbps down 65.53Mbps up Speedtest.org
Antivirus
Zamana Anti-logger with Anti-malware, MSE, Windows Firewall,
Browser
IE11.0.9600.19399-Upd ver11.0.135, Firefox 68.0.1 x64
Other Info
System Specs by Belarc.

BIOS: American Megatrends Inc. P01-A0 11/17/2009

Replaced the MS 'Natural' Standard PS/2 Enhanced 101-102 Keyboard with a new Natural Ergonomic Keyboard 4000 on August 1st 2014.

Canon Pixma MG3222 Printer.

Updated to IE11 on 12102015 | Fios Quantum Router g1100

Additional AV: SpywareBlaster, manual Mbam, SAS
the reg downloads were of interest. added that, but see nothing that it adds to the picture. no right-click context menu to help, no entry in the explorer tools menu.
not really sure what it did...:sarc:

I may be too dense to understand the tutorial, but it appears to be only dealing with whether or not the tool/option is available to users or not, and does not deal with my issue at all. on ultimate x64, why would one need to add/subtract any options from the available? if one can 'add' a network drive location, it would seem one should be able to remove the same? what am I missing?:(

 

My Computer My Computer

Computer Manufacturer/Model Number
HP DC7600, HP DC7600[2], HP DC7100, Samsung NC10
OS
Windows XP Pro SP3, Windows 7 Pro 32-bit, Windows 7 Ultimate 64bit, Windows XP Home SP3
CPU
Pentium 4 3.2GHz, Pentium 4 3.4GHz 64bit, Atom,
Motherboard
Dunno
Memory
4GB matched, 1GB, 2.5GB, 4.0 GB
Graphics Card(s)
Geforce 8400 GS and others
Sound Card
RealteK ALC260 and others
Monitor(s) Displays
Asus HD
Screen Resolution
1920x1080
Hard Drives
WD Caviar 640gb SATA
Cooling
We Be Cool
i've read a bunch of googled help things, but none seem to deal correctly with the situation of a previously-mapped network location that has become non-functional. in this case the use of "net use" variants are of no use because the assumption is that if one has a network drive, it will show up in the net use list, and that's not true, apparently, for win7. I have the z: drive mapped, and the system vainly tries to reconnect it at every logon, and every time I right-click the rascal.
example: Script to remove disconnected network drives
 

My Computer My Computer

Computer Manufacturer/Model Number
HP DC7600, HP DC7600[2], HP DC7100, Samsung NC10
OS
Windows XP Pro SP3, Windows 7 Pro 32-bit, Windows 7 Ultimate 64bit, Windows XP Home SP3
CPU
Pentium 4 3.2GHz, Pentium 4 3.4GHz 64bit, Atom,
Motherboard
Dunno
Memory
4GB matched, 1GB, 2.5GB, 4.0 GB
Graphics Card(s)
Geforce 8400 GS and others
Sound Card
RealteK ALC260 and others
Monitor(s) Displays
Asus HD
Screen Resolution
1920x1080
Hard Drives
WD Caviar 640gb SATA
Cooling
We Be Cool
No your not the dense one, yes I mis-read actual drive with drive options in context menu. :o

Did you use an: http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html when you tried the script?

Is this the Script you used?
Code:
const HKEY_CURRENT_USER = &H80000001 strComputer = "."   Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_  strComputer & "\root\default:StdRegProv")   strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2" oReg.EnumKey HKEY_CURRENT_USER, strKeyPath, arrSubKeys   For Each subkey In arrSubKeys     If CBool(Instr(subkey,"##")) Then         oReg.DeleteKey HKEY_CURRENT_USER, strKeyPath&"\"&subkey     End If Next
Or these?
Code:
The following VBScript will enumerate all network drives, ping the  server extracted from each drive path, and removes the network drive if  server doesn't reply. Of course this script can only be used if Ping is  something that you can rely on.
 Set objNetwork = CreateObject("WScript.Network")  Set objDrives = objNetwork.EnumNetworkDrives  For i = 0 to objDrives.Count - 1 Step 2     DriveLetter = objDrives.Item(i)     DrivePath = objDrives.Item(i+1)     If Len(DriveLetter) > 0 Then         DriveServer = getServerFromPath(DrivePath)         If Not Ping(DriveServer) Then             objNetwork.RemoveNetworkDrive DriveLetter, True, True         End If     End If Next  Function getServerFromPath(txt) ' Function to extract server name from share path     strPattern = "[^\\][A-Za-z0-9.]+"     Set regEx = New RegExp     regEx.Pattern = strPattern     Set Matches = regEx.Execute(txt)     For Each Match in Matches         getServerFromPath = Match.Value     Next End Function  Function ping (host) ' Function that checks whether or not the specified computer replies to Ping   Set objPing = GetObject("winmgmts:{impersonationLevel=impersonate}")._     ExecQuery("select * from Win32_PingStatus where address = '"_         & host & "'")   For Each objStatus in objPing     If IsNull(objStatus.StatusCode) or objStatus.StatusCode<>0 Then         ping = FALSE     Else         ping = TRUE     End If   Next End Function
I was going to offer this:
Type/copy/paste, net use (drive letter): /delete in command prompt and hit enter.

   Note
(drive letter): is the actual drive letter of the network drive, which you want to remove from your computer.
but it looks like you may have already tried that.

I see there is also this one: NET USE * /DELETE /Y
You may end up having to remove all of the drives, and then remapping the one(s) you want.

I have to leave for an appointment, I will check back later...
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gateway DX4831-01e (Mid-Tower Desktop)
OS
Originally Win 7 Hm Prem x64 Ver 6.1.7600 Build 7601-SP1 | Upgraded to Windows 10 December 14, 2019
CPU
Intel i3 530 2.93GHz, 2933MHz 2 Cores 4 Logical Processors
Motherboard
Gateway H57M01 133 megahertz
Memory
6GB of 1,333MHz DDR3 SDRAM
Graphics Card(s)
32MB Intel Graphics Media Accelerator HD IGChip
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Gateway HX2000 20inch TFT active matrix TN
Screen Resolution
1600 x 900 x 59 hertz
Hard Drives
WDC WD10EADS-00M2B0 [HDD] (1000.20 GB) -- drive 0,
HL-DT-ST DVDRAM GH41N [CD-ROM dr]
Four card readers, and Four USB 2.0
PSU
300watts.
Case
Mid-Tower Desktop
Cooling
Stock from Gateway
Keyboard
Natural Ergonomic Keyboard 4000, see Other Info
Mouse
Orig. Gateway wore out now using Insignia USB wired optical
Internet Speed
Vz FIOS 10ms png 57.64Mbps down 65.53Mbps up Speedtest.org
Antivirus
Zamana Anti-logger with Anti-malware, MSE, Windows Firewall,
Browser
IE11.0.9600.19399-Upd ver11.0.135, Firefox 68.0.1 x64
Other Info
System Specs by Belarc.

BIOS: American Megatrends Inc. P01-A0 11/17/2009

Replaced the MS 'Natural' Standard PS/2 Enhanced 101-102 Keyboard with a new Natural Ergonomic Keyboard 4000 on August 1st 2014.

Canon Pixma MG3222 Printer.

Updated to IE11 on 12102015 | Fios Quantum Router g1100

Additional AV: SpywareBlaster, manual Mbam, SAS
well, I got it done - it was crude, I admit, but worked. one of those tutorial/message/thread thingies gave me the idea of just going into the registry and finding the mount points, manually delete the key & subs. it worked.

I wonder at the rationale of MS leaving such a predicament - its not like mapping/unmapping is "esoteric" :)
 

My Computer My Computer

Computer Manufacturer/Model Number
HP DC7600, HP DC7600[2], HP DC7100, Samsung NC10
OS
Windows XP Pro SP3, Windows 7 Pro 32-bit, Windows 7 Ultimate 64bit, Windows XP Home SP3
CPU
Pentium 4 3.2GHz, Pentium 4 3.4GHz 64bit, Atom,
Motherboard
Dunno
Memory
4GB matched, 1GB, 2.5GB, 4.0 GB
Graphics Card(s)
Geforce 8400 GS and others
Sound Card
RealteK ALC260 and others
Monitor(s) Displays
Asus HD
Screen Resolution
1920x1080
Hard Drives
WD Caviar 640gb SATA
Cooling
We Be Cool
That is great news! I am glad you were able to get it straightened out.

It sounds like you opened regedit and searched for
Code:
HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\Explorer\Mountpoint key
And, in that Mountpoint key found the drive you needed removed and deleted it.

I did see that registry modification elsewhere, but did not have the time to post it.
There must be a dozen different ways to try, and unmap or delete a drive.

If you can confirm what you did by using the registry key in the code box or another you could mark this thread solved, it will help other members.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gateway DX4831-01e (Mid-Tower Desktop)
OS
Originally Win 7 Hm Prem x64 Ver 6.1.7600 Build 7601-SP1 | Upgraded to Windows 10 December 14, 2019
CPU
Intel i3 530 2.93GHz, 2933MHz 2 Cores 4 Logical Processors
Motherboard
Gateway H57M01 133 megahertz
Memory
6GB of 1,333MHz DDR3 SDRAM
Graphics Card(s)
32MB Intel Graphics Media Accelerator HD IGChip
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Gateway HX2000 20inch TFT active matrix TN
Screen Resolution
1600 x 900 x 59 hertz
Hard Drives
WDC WD10EADS-00M2B0 [HDD] (1000.20 GB) -- drive 0,
HL-DT-ST DVDRAM GH41N [CD-ROM dr]
Four card readers, and Four USB 2.0
PSU
300watts.
Case
Mid-Tower Desktop
Cooling
Stock from Gateway
Keyboard
Natural Ergonomic Keyboard 4000, see Other Info
Mouse
Orig. Gateway wore out now using Insignia USB wired optical
Internet Speed
Vz FIOS 10ms png 57.64Mbps down 65.53Mbps up Speedtest.org
Antivirus
Zamana Anti-logger with Anti-malware, MSE, Windows Firewall,
Browser
IE11.0.9600.19399-Upd ver11.0.135, Firefox 68.0.1 x64
Other Info
System Specs by Belarc.

BIOS: American Megatrends Inc. P01-A0 11/17/2009

Replaced the MS 'Natural' Standard PS/2 Enhanced 101-102 Keyboard with a new Natural Ergonomic Keyboard 4000 on August 1st 2014.

Canon Pixma MG3222 Printer.

Updated to IE11 on 12102015 | Fios Quantum Router g1100

Additional AV: SpywareBlaster, manual Mbam, SAS
Back
Top