PowerTip: Find Current Runspaces in PowerShell

Doctor Scripto

Summary: Boe Prox shows how to find the current runspaces in Windows PowerShell.

Hey, Scripting Guy! Question  How can I list all of the currently running runspaces in Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get-Runspace cmdlet in Windows PowerShell 5.0:

Get-Runspace

Id Name      ComputerName    Type      State       Availability

—   —-            ————            —-        —–         ————

 1 Runspace1       localhost       Local         Opened        Busy

 2 Runspace2       localhost       Local         Opened        Busy

 3 Runspace3       localhost       Local         Opened        Busy

 4 Runspace4       localhost       Local         Opened        Busy

0 comments

Discussion is closed.

Feedback usabilla icon