Skip to content

Get-Item: "\" and "/" aren't recognized as root paths when used with the provider prefix on Windows #11660

Closed

Description

Note: Only Get-Item is affect, not also Get-ChildItem, and only on Windows.

Steps to reproduce

Run the following on Windows:

{ Get-Item -ea stop Microsoft.PowerShell.Core\FileSystem::\ } | should -not -throw
{ Get-Item -ea stop Microsoft.PowerShell.Core\FileSystem::/ } | should -not -throw

Expected behavior

Both tests should pass.

Actual behavior

Both tests fail:

"Could not find item /."

As stated, these tests work fine on Unix, and on Windows also if you replace Get-Item with Get-ChildItem.

Environment data

PowerShell Core 7.0.0-rc.2

Activity

  1. added
    Issue-Question
    on Jan 22, 2020
  2. changed the title [-]Get-Item "\" and "/" aren't recognized as root paths with provider prefix[/-] [+]Get-Item "\" and "/" aren't recognized as root paths with provider prefix on Windows[/+] on Jan 22, 2020
  3. changed the title [-]Get-Item "\" and "/" aren't recognized as root paths with provider prefix on Windows[/-] [+]Get-Item: "\" and "/" aren't recognized as root paths with provider prefix on Windows[/+] on Jan 22, 2020
  4. changed the title [-]Get-Item: "\" and "/" aren't recognized as root paths with provider prefix on Windows[/-] [+]Get-Item: "\" and "/" aren't recognized as root paths with used with the provider prefix on Windows[/+] on Jan 22, 2020
  5. changed the title [-]Get-Item: "\" and "/" aren't recognized as root paths with used with the provider prefix on Windows[/-] [+]Get-Item: "\" and "/" aren't recognized as root paths when used with the provider prefix on Windows[/+] on Jan 22, 2020
  6. added
    Area-FileSystem-Provider
    WG-Engine-Providers
    and removed on Nov 30, 2021
  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    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.

  8. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    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.

  9. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    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.

  10. added
    Resolution-No Activity
    on Nov 16, 2023
  11. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileSystem-ProviderIssue-QuestionOS-WindowsResolution-No ActivityWG-CmdletsWG-Engine-Providers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions