Task Scheduler Scripting Objects

The scripting objects that are described in the following topics provide programmatic access to the functionality that is available within the Task Scheduler for Visual Basic and Visual Basic script developers.

The following objects are introduced in Task Scheduler 2.0.

ObjectDescription
ActionProvides the common properties that are inherited by all action objects.
ActionCollectionContains the actions performed by the task.
BootTriggerRepresents a trigger that starts a task when the system is booted.
ComHandlerActionRepresents an action that fires a handler.
DailyTriggerRepresents a trigger that starts a task based on a daily schedule.
EmailActionRepresents an action that sends an e-mail.
EventTriggerRepresents a trigger that starts a task when a system event occurs.
ExecActionRepresents an action that executes a command-line operation.
IdleSettingsSpecifies how the Task Scheduler performs tasks when the computer is in an idle condition.
IdleTriggerRepresents a trigger that starts a task when an idle condition occurs.
LogonTriggerRepresents a trigger that starts a task when a user logs on.
MonthlyDOWTriggerRepresents a trigger that starts a task on a monthly day-of-week schedule.
MonthlyTriggerRepresents a trigger that starts a task based on a monthly schedule.
NetworkSettingsProvides the settings that the Task Scheduler service uses to obtain a network profile.
PrincipalProvides the security credentials for a principal.
RegisteredTaskProvides the methods that are used to run the task immediately, get any running instances of the task, get or set the credentials that are used to register the task, and the properties that describe the task.
RegisteredTaskCollectionContains all the tasks that are registered.
RegistrationInfoProvides the administrative information that can be used to describe the task. This information includes details such as a description of the task, the author of the task, the date the task is registered, and the security descriptor of the task.
RegistrationTriggerRepresents a trigger that starts a task when the task is registered.
RepetitionPatternDefines how often the task is run and how long the repetition pattern is repeated after the task is started.
RunningTaskProvides the methods to get information from and control a running task.
RunningTaskCollectionUsed to retrieve a running task.
SessionStateChangeTriggerUsed to trigger tasks for console connect or disconnect, remote connect or disconnect, or workstation lock or unlock notifications.
ShowMessageActionRepresents an action that shows a message box when a task is activated.
TaskDefinitionDefines all the components of a task, such as the task settings, triggers, actions, and registration information.
TaskFolderProvides the methods that are used to register (create) tasks in the folder, remove tasks from the folder, and create or remove subfolders from the folder.
TaskFolderCollectionCounts the number of folders in the collection and retrieve a specified folder from the collection.
TaskNamedValuePairCreates a name-value pair in which the name is associated with the value.
TaskNamedValueCollectionContains a collection of TaskNamedValuePair object name-value pairs.
TaskServiceProvides access to the Task Scheduler service for managing registered tasks.
TaskSettingsProvides the settings that the Task Scheduler services uses to perform the task.
TaskVariablesDefines task variables that can be passed as parameters to task handlers and external executables that are launched by tasks.
TimeTriggerRepresents a trigger that starts a task when the trigger is activated.
TriggerProvides the common properties that are inherited by all trigger objects.
TriggerCollectionUsed to add to, remove from, and retrieve the triggers of a task.
WeeklyTriggerRepresents a trigger that starts a task based on a weekly schedule.

 

See Also

Task Scheduler Reference
Task Scheduler

Send comments about this topic to Microsoft

Build date: 10/26/2009

Tags :


Page view tracker