共用方式為


PSInvocationState Enum

Definition

Enumerated type defining the state of the PowerShell.

public enum class PSInvocationState
public enum PSInvocationState
type PSInvocationState = 
Public Enum 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