InitialSessionState.Create InitialSessionState.Create InitialSessionState.Create Method

Definition

Overloads

Create() Create() Create()

Creates an empty InitialSessionState object...

Create(String) Create(String) Create(String)

Want to get away from SnapIn and console file. Have modules and assemblies instead. Specify the registered SnapIn name or name collection

Create(String[], PSConsoleLoadException) Create(String[], PSConsoleLoadException) Create(String[], PSConsoleLoadException)

Create() Create() Create()

Creates an empty InitialSessionState object...

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

Create(String) Create(String) Create(String)

Want to get away from SnapIn and console file. Have modules and assemblies instead. Specify the registered SnapIn name or name collection

public static System.Management.Automation.Runspaces.InitialSessionState Create (string snapInName);
static member Create : string -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function Create (snapInName As String) As InitialSessionState
Parameters
snapInName
String String String
Returns

Create(String[], PSConsoleLoadException) Create(String[], PSConsoleLoadException) Create(String[], PSConsoleLoadException)

public static System.Management.Automation.Runspaces.InitialSessionState Create (string[] snapInNameCollection, out System.Management.Automation.Runspaces.PSConsoleLoadException warning);
static member Create : string[] *  -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function Create (snapInNameCollection As String(), ByRef warning As PSConsoleLoadException) As InitialSessionState
Parameters
snapInNameCollection
String[]
Returns

Applies to