winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
4.78k stars 250 forks source link

Can not delete drive with net use <drive>: /d #408

Open pluraltouch opened 8 months ago

pluraltouch commented 8 months ago

I can successfully map a drive, however I can not delete it.

Using sshfs-win version 3.5.20357 with winfsp 2.0.23075. (I can successfully delete a winfsp memory drive, it that information matters)

image

System info:

OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000 OS Build Type: Multiprocessor Free System Type: x64-based PC Processor(s): 1 Processor(s) Installed. 01: Intel64 Family 6 Model 167 Stepping 1 GenuineIntel ~3912 Mhz BIOS Version: American Megatrends Inc. 1007, 2021. 07. 08. Total Physical Memory: 16GB Available Physical Memory: 7GB Virtual Memory: Max Size: 41GB Hotfix(s): 6 Hotfix(s) Installed.

                       [02]: KB5028856
                       [03]: KB5011048
                       [04]: KB5012170
                       [05]: KB5031358
                       [06]: KB5031591

Hyper-V Requirements: A hypervisor has been detected.

NebularNerd commented 5 months ago

I had this as well, pain in the backside. The only solution I found to work was from here: https://www.wintips.org/fix-this-network-connection-does-not-exist-windows-10-11/

Head straight to section 2 and go from there with the regedit solution. Their nuke from orbit solution on the key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 is not entirely necessary, if you can see the offending subkeys with \\sshfs\REMUSER@HOST then you can just delete those.

I personally had no entries under HKEY_CURRENT_USER\Network, maybe they were already deleted from trying net use s: /delete and mountvol s: /d. After a reboot all is well once more.