Skip to content

Wildcards don't work with Windows device paths #19439

@MartinGC94

Description

@MartinGC94

Prerequisites

Steps to reproduce

  1. Run: Get-Volume -DriveLetter C | select Path to get a device path (in my case \\?\Volume{75e6ef3a-53fe-4b22-82de-b061b4abfb89}\)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions