PowerTip: Examine PowerShell Runspace Initial Session State

Doctor Scripto

Dr Scripto

Summary: Use the .NET Framework to examine the initial session state of a Windows PowerShell runspace.

Hey, Scripting Guy! Question How can I see the initial session state of the default Windows PowerShell runspace?

Hey, Scripting Guy! AnswerUse the RunSpace class, and examine the InitialSessionState property from the default Runspace object:



Comments are closed. Login to edit/delete your existing comments