PowerTip: Examine PowerShell Runspace Initial Session State


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:

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

Comments (1)

  1. BASATI says:

    I know that runspace is at its best when comes to the parallel processing. Researching on the topic. Thanks for the information…………Naveen Basati

Skip to main content