The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PowerShell.Create Method (InitialSessionState)


Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PowerShell class with an empty pipeline and an initial session state; a script or command must be added before invoking this instance. Introduced in Windows PowerShell 3.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public static PowerShell Create(
	InitialSessionState initialSessionState


Type: System.Management.Automation.Runspaces.InitialSessionState

The initial session state with which to create the runspace.

Return Value

Type: System.Management.Automation.PowerShell

A PowerShell object with an empty pipeline.

Return to top

Community Additions