PSJobState Enumeration
Defines the status of the job.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public Enumeration PSJobState
public enum PSJobState
public enum class PSJobState
public enum PSJobState
public enum PSJobState
Members
| Member name | Description |
|---|---|
| Blocked | The job is blocked, such as for user input, from executing its command or expression in one or more runspace. |
| Completed | The job has finished running its command or expression in all runspaces. |
| Failed | An error has occurred while executing the command or expression in one or more runspace. |
| NotStarted | The execution of the command or expression of the job has not started. |
| Running | The command or expression of the job is running in one or more runspace. |
| Stopped | The job has been cancelled on one or more runspace. |
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP