PowerTip: Find Information about Default PowerShell Runspace

Doctor Scripto

Dr 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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment