InitialSessionState.CreateDefault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the default PowerShell one with default cmdlets, provider etc. BuiltIn functions, aliases need to be available through default InitialSessionstate constructor. Need to have this discussion for packaging as well.
public:
static System::Management::Automation::Runspaces::InitialSessionState ^ CreateDefault();
public static System.Management.Automation.Runspaces.InitialSessionState CreateDefault ();
static member CreateDefault : unit -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function CreateDefault () As InitialSessionState