You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run: Get-Volume -DriveLetter C | select Path to get a device path (in my case \\?\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89}\)
Run ls on the devicepath with a wildcard at the end like this:
ls '\\`?\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89}\*'
Expected behavior
Output from the specified volume.
Actual behavior
No output.
Error details
No response
Environment data
Name Value
---------
PSVersion 7.4.0-preview.2
PSEdition Core
GitCommitId 7.4.0-preview.2
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
The text was updated successfully, but these errors were encountered:
It seem the issue is caused by this check: https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/namespaces/FileSystemProvider.cs#L127 the path provided to that method does not have the trailing backslash so it reports that the directory \\.\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89} does not exist, which is consistent with how the win32 API handles such paths. If you add one more backslash then it work: ls '\\.\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89}\\*'
Prerequisites
Steps to reproduce
Get-Volume -DriveLetter C | select Path
to get a device path (in my case\\?\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89}\
)ls
on the devicepath with a wildcard at the end like this:Expected behavior
Output from the specified volume.
Actual behavior
No output.
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: