P9 Fileserver for WSL

5 min read
P9 Fileserver for WSL

\\wsl$\running dist not working Problem accessing your WSL - Windows Subsystem for Linux - linux files in Windows 10 1903. Probably a missing P9NP in Order in registry.

If you cant access \\wsl$\Ubuntu it is probably because the updater missed to activate the P9NP component.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order]

is missing P9NP.

reg query HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider /s
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder]
"PROVIDERORDER"="RDPNP,LanmanWorkstation,webclient"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order]
"PROVIDERORDER"="RDPNP,LanmanWorkstation,webclient"

Easy fix is to insert P9NP first in the list as in this WSL issue

reg export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider NetworkProvider.reg

edit the .reg file to have P9NP first the the list of Order and HwOrder

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder]
"PROVIDERORDER"="P9NP,RDPNP,LanmanWorkstation,webclient"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order]
"PROVIDERORDER"="P9NP,RDPNP,LanmanWorkstation,webclient"

then import it (with local admin right)

runas /noprofile /user:domain\localadmin "reg import NetworkProvider.reg"