PowerTip: Find Information about Default PowerShell Runspace

Doctor Scripto

Summary: Use the .NET Framework to find information about the default Windows PowerShell runspace.

Hey, Scripting Guy! Question How can I find information about the default Windows PowerShell runspace?

Hey, Scripting Guy! Answer Use the DefaultRunspace parameter from the Runspace class:

[System.Management.Automation.Runspaces.Runspace]::DefaultRunspace

0 comments

Discussion is closed.

Feedback usabilla icon