Skip to content

Filesystem Provider, UNC Paths & Double Backslash #13633

@FriedrichWeinmann

Description

@FriedrichWeinmann

Steps to reproduce

Run Remove-Item with a UNC path that contains a doubled backslash before the last item and including -WhatIf.
After confirming that you want to delete multiple items even though you didn't specify recurse, check the path it would have deleted.

Remove-Item \\localhost\C$\temp\\ADMF -WhatIf

Expected behavior

What if: Performing the operation "Remove Directory" on target "\\localhost\C$\temp\ADMF"

Actual behavior

What if: Performing the operation "Remove Directory" on target "\\localhost\C$\temp\"

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.0-preview.6
PSEdition                      Core
GitCommitId                    7.1.0-preview.6
OS                             Microsoft Windows 10.0.18363
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

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions