Skip to content

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

@pcgeek86

Description

@pcgeek86

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

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions