Get-Runspace
获取 Windows PowerShell 主机进程中的活动运行空间。
语法
Get-Runspace
[[-Name] <String[]>]
[<CommonParameters>]
Get-Runspace
[-Id] <Int32[]>
[<CommonParameters>]
Get-Runspace
[-InstanceId] <Guid[]>
[<CommonParameters>]
说明
Get-Runspace cmdlet 在 Windows PowerShell 主机进程中获取活动运行空间。
示例
1:
2:
参数
-Id
类型: | Int32[] |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InstanceId
指定正在运行的作业的实例 ID GUID。
类型: | Guid[] |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
类型: | String[] |
Position: | 0 |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输出
可以通过管道将 Get-Runspace
命令的结果传递给 Debug-Runspace
。