Information
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.

PSInvocationState Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the states of a PowerShell pipeline. This class is introduced in Windows PowerShell 2.0.

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

public enum PSInvocationState

Member nameDescription
Completed

PowerShell has completed executing a command.

Disconnected

PowerShell is in disconnected state.

Failed

PowerShell completed abnormally due to an error.

NotStarted

PowerShell has not been started

Running

PowerShell is executing

Stopped

PowerShell is completed due to a stop request.

Stopping

PowerShell is stoping execution.

The state of the pipeline is accessible through the following properties.

Return to top
Show: