Skip to content

Bug with set-location/cd/pushd command #12172

@p0W3RH311

Description

@p0W3RH311

Bug with set-location/cd/pushd command

step to reproduce

PS C:\Windows\System32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


PS C:\Windows\System32> cd /
PS C:\Windows\System32> # work as expected
PS C:\> cd .\Windows\System32\

PS C:\Windows\System32> # ..but if i ran get-wmiobject...
PS C:\Windows\System32> get-wmiobject win32_Bios

SMBIOSBIOSVersion : xxxx
Manufacturer      : xxxx
Name              : xxxxx
SerialNumber      : xxxxx
Version           : xxxxx


PS C:\Windows\System32> # ... to work with Windows Powershell modules set-location/cd/pushd command's don't work as expected 
PS C:\Windows\System32> cd /
PS C:\Windows\System32> cd \
PS C:\Windows\System32> Set-Location c:
PS C:\Windows\System32> Set-Location /
PS C:\Windows\System32> Set-Location \
PS C:\Windows\System32> pushd \
PS C:\Windows\System32> pushd /
PS C:\Windows\System32>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-DuplicateThe issue is a duplicate.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions