September 28th, 2013

PowerTip: Find Information about Default PowerShell Runspace

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback