Get-Runspace
取得 Windows PowerShell 主機進程內的使用中 Runspace。
Syntax
Get-Runspace
[[-Name] <String[]>]
[<CommonParameters>]
Get-Runspace
[-Id] <Int32[]>
[<CommonParameters>]
Get-Runspace
[-InstanceId] <Guid[]>
[<CommonParameters>]
Description
Get-Runspace Cmdlet 會在 Windows PowerShell 主機進程中取得作用中的 Runspace。
範例
1:
2:
參數
-Id
Type: | Int32[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InstanceId
指定執行中工作的執行個體識別碼 GUID。
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 |
輸出
您可以使用管線將命令的結果 Get-Runspace
傳送至 Debug-Runspace
。