共用方式為


Get-Runspace

取得 Windows PowerShell 主機進程內的作用中 Runspace。

語法

NameParameterSet (預設值)

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

IdParameterSet

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

InstanceIdParameterSet

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

Description

Get-Runspace Cmdlet 會在 Windows PowerShell 主機進程中取得作用中的 Runspace。

範例

1:


2:


參數

-Id

Get-Runspace Cmdlet 會在 Windows PowerShell 主機進程中取得作用中的 Runspace。

參數屬性

類型:

Int32[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

IdParameterSet
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-InstanceId

指定執行中作業的實例識別碼 GUID。

參數屬性

類型:

Guid[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

InstanceIdParameterSet
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Name

Get-Runspace Cmdlet 會在 Windows PowerShell 主機進程中取得作用中的 Runspace。

參數屬性

類型:

String[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

NameParameterSet
Position:0
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸出

Runspace

您可以使用管線將 Get-Runspace 指令的結果傳送至 Debug-Runspace