Get-Runspace
Gets active runspaces within a Windows PowerShell host 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:
Parameters
-Id
Type: | Int32[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InstanceId
Specifies the instance ID GUID of a running job.
Type: | Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
You can pipe the results of a Get-Runspace
command to Debug-Runspace
.