Repository navigation
Closed
Labels
Area-FileSystem-Providerspecific to the FileSystem providerNeeds-ReproThe issue author needs to provide repro steps.Resolution-No ActivityIssue has had no activity for 6 months or more
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
This issue was supposedly fixed #10674
However, I am still seeing the exact same issue described in #10360 and #15497.
Expected behavior
PS C:\Users> cd //wsl$/fedoraremix/
PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\fedoraremix>Actual behavior
PS C:\Users> cd //wsl$/fedoraremix/
Set-Location: Cannot find path '//wsl$/fedoraremix/' because it does not exist.Error details
Set-Location: Cannot find path '//wsl$/fedoraremix/' because it does not exist.Environment data
PS> $psversiontable
Name Value
---- -----
PSVersion 7.2.0-preview.7
PSEdition Core
GitCommitId 7.2.0-preview.7
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0and
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Metadata
Metadata
Assignees
Labels
Area-FileSystem-Providerspecific to the FileSystem providerNeeds-ReproThe issue author needs to provide repro steps.Resolution-No ActivityIssue has had no activity for 6 months or more
Activity
iSazonov commentedon Jul 14, 2021
Do you see the issue without final '/'?
clayms commentedon Jul 14, 2021
Ilya (@iSazonov)
Yes. All of the following return the same error
cd //wsl$/fedoraremix/cd //wsl`$/fedoraremix/cd "//wsl$/fedoraremix/"cd "//wsl`$/fedoraremix/"cd "//wsl$/fedoraremix"cd "//wsl`$/fedoraremix"cd //wsl$/fedoraremixcd //wsl`$/fedoraremixvexx32 commentedon Jul 14, 2021
I thought you needed to target
\\wsl$\distrorather than//wsl$/distro? I know Windows is usually indifferent to what slashes you use, but I thought the\\prefix was specifically backslashes?rkeithhill commentedon Jul 14, 2021
Both backward and forward slashes work for me:
iSazonov commentedon Jul 15, 2021
Keith Hill (@rkeithhill) Please share your Windows version.
clayms Is WSL running in your test?
rkeithhill commentedon Jul 15, 2021
I'm using 21H1 (10.0.19043).
clayms commentedon Jul 15, 2021
Ilya (@iSazonov)
Yes, in another shell, because I thought it had to be actively running. So I started it in another shell on the same computer and left it running before I started another shell and tried to
cdinto the wsl directories.However, I just found out that I have to run
wslin the exact same shell session that I want tocdinto the wsl directories. Afterexiting wsl back to PowerShell can I then successfullycdinto the wsl directories from that session and only that session. It does not matter how many other active wsl sessions are running on the same computer.SteveL-MSFT commentedon Aug 4, 2021
This is working for me without starting wsl in the same process. If this still repros for you, try from cmd.exe and see if it repros to determine if it's WSL.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 23, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.
Thynix commentedon Sep 22, 2026
For what it's worth to other people from the future, this now works for me: