Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Get-PSDrive returns incorrect DisplayRoot property for mounted drive letters in 7.4.1 #21064

Copy link
Copy link
@sba923

Description

@sba923
Issue body actions

Prerequisites

Steps to reproduce

When running this for a network-mounted drive letter

Get-PSDrive -Name V | Select-Object DisplayRoot

The output is incorrect, because the value of the property is incorrect (padded with NULs up to some length):

image

The output from Windows PowerShell 5.1 is correct:

image

Here's the culprit:

image

This is linked to (the fix for) #19903

Expected behavior

Get-PSDrive -Name V | Select-Object DisplayRoot

DisplayRoot
-----------
\\pnjnas\V

Actual behavior

Get-PSDrive -Name V | Select-Object DisplayRoot

DisplayRoot
-----------
\\pnjnas\V…

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22621
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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueWG-Maintainers-Buildspecific to affecting the buildspecific to affecting the build

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.