Expand Minimize

JobState Enumeration

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)

'Usage
Dim instance As JobState

public enum class JobState
public enum JobState
public enum JobState

Member nameDescription
BlockedThe job is blocked, such as waiting for user input, from running the commands of the pipeline in one or more runspaces. This field is introduced in Windows PowerShell 2.0.
CompletedThe job has successfully run the commands of the pipeline in all runspaces. This field is introduced in Windows PowerShell 2.0.
DisconnectedThe job is a remote job and has been disconnected from the server.
FailedThe job was not successfully able to run the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
NotStartedThe job has not begun to run the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
RunningThe job is in the process of running the commands of the pipeline. This field is introduced in Windows PowerShell 2.0.
StoppedThe job has been canceled on one or more runspaces. This field is introduced in Windows PowerShell 2.0.
StoppingThe job is in the process of stopping the running of the commands of the pipeline.
SuspendedThe job has suspended the running of the commands of the pipeline.
SuspendingThe job is in the process of suspending the running of the commands of the pipeline.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft