Skip to content

Enable-PSRemoting and Install-PowerShellRemoting.ps1 create version specific endpoints with different names #7119

@HemantMahawar

Description

@HemantMahawar

Steps to reproduce

  1. Run elevated pwsh.exe

  2. Unregister any existing PowerShell Core remoting endpoint

Get-PSSessionConfiguration | Unregister-PSSessionConfiguration
  1. Run Install-PowerShellRemoting.ps1 from $PSHome
& $PSHome\Install-PowerShellRemoting.ps1
  1. List the remoting endpoints
Get-PSSessionConfiguration | ft name
  1. Unregister any existing PowerShell Core remoting endpoint from step 2
Get-PSSessionConfiguration | Unregister-PSSessionConfiguration
  1. Run Enable-PSRemoting cmdlet
Enable-PSRemoting
  1. List the remoting endpoints
Get-PSSessionConfiguration | ft name

Expected behavior

After steps 3 and 5, the endpoint names should be same:

  • PowerShell.6
  • PowerShell.6.1.0-preview.3

Actual behavior

Endpoint names are different after steps 3 and 5

After Step 3

  • PowerShell.6
  • PowerShell.6.1.0-preview.3

After Step 5

  • PowerShell.6
  • PowerShell.v6.1.0-preview.3 (extra 'v' before version number)

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.WG-RemotingPSRP issues with any transport layer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions