-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Area-Maintainers-Buildspecific to affecting the buildspecific to affecting the build
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
When running this for a network-mounted drive letter
Get-PSDrive -Name V | Select-Object DisplayRootThe output is incorrect, because the value of the property is incorrect (padded with NULs up to some length):
The output from Windows PowerShell 5.1 is correct:
Here's the culprit:
This is linked to (the fix for) #19903
Expected behavior
Get-PSDrive -Name V | Select-Object DisplayRoot
DisplayRoot
-----------
\\pnjnas\VActual 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.0Visuals
No response
Metadata
Metadata
Assignees
Labels
Area-Maintainers-Buildspecific to affecting the buildspecific to affecting the build


