Get-Runspace

Gets active runspaces within a Windows PowerShellhost process.

Syntax

Get-Runspace
   [[-Name] <String[]>]
   [<CommonParameters>]
Get-Runspace
   [-Id] <Int32[]>
   [<CommonParameters>]
Get-Runspace
   [-InstanceId] <Guid[]>
   [<CommonParameters>]

Description

The Get-Runspace cmdlet gets active runspaces in a Windows PowerShell host process.

Examples

1:

2:

Required Parameters

-Id
Type: Int32[]
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InstanceId
Type: Guid[]
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Optional Parameters

-Name
Type: String[]
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Outputs

System.Management.Automation.Runspaces.Runspace

You can pipe the results of a Get-Runspace command to Debug-Runspace .