Summary: Use the .NET Framework to find information about the default Windows PowerShell runspace.
How can I find information about the default Windows PowerShell runspace?
Use the DefaultRunspace parameter from the Runspace class:
[System.Management.Automation.Runspaces.Runspace]::DefaultRunspace
0 comments