Skip to content

Bug: PSSession Name is not properly set when using "SSHHost" parameter set name #5951

Description

Reproduction Steps

PS /Users/tsulli> New-PSSession -SSHTransport -Name asdf -Port 22 -HostName x.x.x.x -UserName AdminUser -KeyFilePath /Users/tsulli/Spock.pem

Expected Result

The PSSession object has the name specified in the -Name parameter of the New-PSSession command.

Actual Result

The PSSession object does not have the name specified in the -Name parameter of the New-PSSession command.

 Id Name            ComputerName    ComputerType    State         ConfigurationName     Availability
 -- ----            ------------    ------------    -----         -----------------     ------------
  9 SSH9            x.x.x.x  RemoteMachine   Opened        DefaultShell             Available

Cheers,
Trevor Sullivan

Activity

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

Metadata

Metadata

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions