Summary: Use the .NET Framework to examine the initial session state of a Windows PowerShell runspace.
How can I see the initial session state of the default Windows PowerShell runspace?
Use the RunSpace class, and examine the InitialSessionState property from the default Runspace object:
[System.Management.Automation.Runspaces.Runspace]::DefaultRunspace.InitialSessionState
0 comments