RegisteredTask.State property
For scripting, gets the operational state of the registered task.
Syntax
RegisteredTask.State As Integer
Property value
A TASK_STATE constant that defines the operational state of the task.
Value | Meaning |
---|---|
|
The state of the task is unknown. |
|
The task is registered but is disabled and no instances of the task are queued or running. The task cannot be run until it is enabled. |
|
Instances of the task are queued. |
|
The task is ready to be executed, but no instances are queued or running. |
|
One or more instances of the task are running. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Type library |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for