Udostępnij za pośrednictwem


InitialSessionState.CreateDefault2 Method

Definition

Creates the default PowerShell one with default cmdlets, provider etc. The default cmdlets, provider, etc are loaded via Modules. For loading Microsoft.PowerShell.Core module only.

public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateDefault2();
public static System.Management.Automation.Runspaces.InitialSessionState CreateDefault2 ();
static member CreateDefault2 : unit -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function CreateDefault2 () As InitialSessionState

Returns

Applies to