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.

JobState Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the state of the job, such as has the job started, is it running, or has it been stopped. This class is introduced in Windows PowerShell 2.0.

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

public enum JobState

Member nameDescription
AtBreakpoint

Script execution is halted in a debugger stop.

Blocked

Command execution is blocked (on user input host calls etc)

Completed

execution of command completed in all computernames/runspaces

Disconnected

The job is a remote job and has been disconnected from the server.

Failed

An error was encountered when trying to executed command in one or more computernames/runspaces

NotStarted

Execution of command in job not started

Running

execution of command in progress

Stopped

Command execution is cancelled (stopped) in one or more computernames/runspaces.

Stopping

Stop is in progress

Suspended

The job has been suspended

Suspending

Suspend is in progress

Return to top
Show: