Get-Runspace

Gets active runspaces within a Windows PowerShell host process.

语法

NameParameterSet (默认值)

Get-Runspace
    [[-Name] <String[]>]
    [<CommonParameters>]

IdParameterSet

Get-Runspace
    [-Id] <Int32[]>
    [<CommonParameters>]

InstanceIdParameterSet

Get-Runspace
    [-InstanceId] <Guid[]>
    [<CommonParameters>]

说明

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

示例

1:


2:


参数

-Id

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

参数属性

类型:

Int32[]

默认值:None
支持通配符:False
不显示:False

参数集

IdParameterSet
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-InstanceId

Specifies the instance ID GUID of a running job.

参数属性

类型:

Guid[]

默认值:None
支持通配符:False
不显示:False

参数集

InstanceIdParameterSet
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

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

参数属性

类型:

String[]

默认值:None
支持通配符:False
不显示:False

参数集

NameParameterSet
Position:0
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

输出

Runspace

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