Skip to content

Runspace names listed by Get-Runspace should have meaningful names when possible #2426

@PaulHigin

Description

@PaulHigin

Currently when a new runspace is created its default name is "Runspace#". The only exception to this is the runspace created on a host process for IPC and it is named "RemoteHost".

We should provide runspace names with meaning when possible. This would make it easier for users to determine which runspace in the list is the one they want to examine or debug.

For example:

  1. The first runspace created in a session with a PSHost should be named "HostRunspace" (now it is "Runspace1").
  2. The IPC host runspace should be renamed to "IPCHostRS".
  3. The runspace proxy created for a WinRM remote session should be "WinRMRunspace#".
  4. The runspace proxy created for an SSH remote session should be "SSHRunspace#".
  5. Internal runspaces created by the PowerShell engine could be something like "InternalRS#", or "PSTempRS#".
  6. Workflow runspaces could be "PSWorkflowRS#".

Metadata

Metadata

Assignees

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-RemotingPSRP issues with any transport layer

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions