Mapping network drive to \\wsl$\path does not work
-
Your Windows build number: (Type
verat a Windows Command Prompt) 10.0.18362.53 -
In Windows explorer write address "\wsl$", select the displayed "Ubuntu" icon and select "Map network drive...". Try to map preselected path "Ubuntu" (grayed out, not editable) to driver letter W:. It will fail with "Windows cannot access Ubuntu" window.
Alternatively in command path try:
net use w: \\wsl$\Ubuntu\
System error 67 has occurred.
The network name cannot be found.
- What's wrong / what should be happening instead: Would be nice to be able to map drive letter to \wsl$\distro_path. If this is not yet possible then Explorer should not display "Map network drive..." menu entry if it is known to fail
Fixed in 18860 (Skip Ahead). See issue #3854
I tried mapping a directory from WSL and it does not work

See the previous linked issue.
I tried mapping a directory from WSL and it does not work
hi there,
build 22000
same issue, thou just adding \wsl$
Hello
I had the same problem today: impossible to map the distribution; here is the solution: https://www.reddit.com/r/bashonubuntuonwindows/comments/hos80y/comment/fxleabf
TLDR: we first need to open the distribution (Ubuntu in my case), to do this, from you Windows start menu, click on the Ubuntu icon. Then the map network drive will work from File Explorer.
Hello. Same problem encountered here just today as @drillyme 's error message.
I am trying to map to a network drive because JetBrains' PyCharm debugger has difficulty showing current line-of-execution while debugging these files in a virtual wsl drive.
I imagine other programs have compatibility problems with operating on files in the wsl virtual drive as well.
Windows build: Microsoft Windows [Version 10.0.19043.1466]
@cavo789 This is not the problem. The distribution is opened. I can add \wsl$\debian or \wsl.localhost\debian but cannot add \wsl$\ssh-debian\home\username So no path can be added. Strange.
Windows 11 build: 10.0.22572.0 (22572.1.amd64fre.ni_release.220304-1536)
Hello
@cavo789 This is not the problem.
For my need, yes, this is the solution. Using what I've typed, I can map my folder.
Something else in your case. Hope you'll find.