PSInvocationState Enum

Definition

Enumerated type defining the state of the PowerShell.

C++
public enum class PSInvocationState
Inheritance
PSInvocationState

Fields

Name Value Description
NotStarted 0

PowerShell has not been started.

Running 1

PowerShell is executing.

Stopping 2

PowerShell is stoping execution.

Stopped 3

PowerShell is completed due to a stop request.

Completed 4

PowerShell has completed executing a command.

Failed 5

PowerShell completed abnormally due to an error.

Disconnected 6

PowerShell is in disconnected state.

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0