Training
Module
Create and manage scheduled jobs using Windows PowerShell - Training
Create and manage scheduled jobs using Windows PowerShell
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Overview of the Task Scheduler technology.
To develop Task Scheduler, you need these headers:
For programming guidance for this technology, see:
TASK_ACTION_TYPE Defines the type of actions that a task can perform. |
TASK_COMPATIBILITY Defines what versions of Task Scheduler or the AT command that the task is compatible with. |
TASK_CREATION Defines how the Task Scheduler service creates, updates, or disables the task. |
TASK_ENUM_FLAGS Defines how the Task Scheduler enumerates through registered tasks. |
TASK_INSTANCES_POLICY Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task. |
TASK_LOGON_TYPE Defines what logon technique is required to run a task. |
TASK_PROCESSTOKENSID_TYPE Defines the types of process security identifier (SID) that can be used by tasks. |
TASK_RUN_FLAGS Defines how a task is run. |
TASK_RUNLEVEL_TYPE Defines LUA elevation flags that specify with what privilege level the task will be run. |
TASK_SESSION_STATE_CHANGE_TYPE Defines what kind of Terminal Server session state change you can use to trigger a task to start. |
TASK_STATE Defines the different states that a registered task can be in. |
TASK_TRIGGER_TYPE Defines the types of triggers associated with a task. |
TASK_TRIGGER_TYPE2 Defines the type of triggers that can be used by tasks. |
TASKPAGE Defines the type of task page to be retrieved. |
Activate The Activate method returns an active interface for a specified work item. |
AddRequiredPrivilege Adds the required privilege to the task process token. |
AddWorkItem The AddWorkItem method adds a task to the schedule of tasks. |
Clear Clears all the actions from the collection. |
Clear Clears the entire collection of name-value pairs. |
Clear Clears all triggers from the collection. |
Clone Creates a new enumeration object that contains the same enumeration state as the current enumeration. |
Connect Connects to a remote computer and associates all subsequent calls on this interface with a remote session. |
Create Creates and adds a new action to the collection. |
Create Creates a name-value pair in the collection. |
Create Creates a new trigger for the task. |
CreateFolder Creates a folder for related tasks. |
CreateTrigger Creates a trigger for the work item. |
Delete The Delete method deletes a task. |
DeleteFolder Deletes a subfolder from the parent folder. |
DeleteTask Deletes a task from the folder. |
DeleteTrigger Deletes a trigger from a work item. |
EditWorkItem Displays the Task, Schedule, and settings property pages for the work item, allowing a user set the properties on those pages. |
Enum The Enum method retrieves a pointer to an OLE enumerator object that enumerates the tasks in the current task folder. |
get__NewEnum Gets the collection enumerator for the action collection. |
get__NewEnum Gets the collection enumerator for the register task collection. |
get__NewEnum Gets the collection enumerator for the running task collection. |
get__NewEnum Gets the collection enumerator for the folder collection. |
get__NewEnum Gets the collection enumerator for the name-value pair collection. |
get__NewEnum Gets the collection enumerator for the trigger collection. |
get_Actions Gets or sets a collection of actions performed by the task. (Get) |
get_AllowDemandStart Gets or sets a Boolean value that indicates that the task can be started by using either the Run command or the Context menu. (Get) |
get_AllowHardTerminate Gets or sets a Boolean value that indicates that the task may be terminated by the Task Scheduler service using TerminateProcess. (Get) |
get_Arguments Gets or sets the arguments associated with the command-line operation. (Get) |
get_Attachments Gets or sets the pointer to an array of attachments that is sent with the email message. (Get) |
get_Author Gets or sets the author of the task. (Get) |
get_Bcc Gets or sets the email address or addresses that you want to Bcc in the email message. (Get) |
get_Body Gets or sets the body of the email that contains the email message. (Get) |
get_Cc Gets or sets the email address or addresses that you want to Cc in the email message. (Get) |
get_ClassId Gets or sets the identifier of the handler class. (Get) |
get_Compatibility Gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with. (Get) |
get_Connected Gets a Boolean value that indicates if you are connected to the Task Scheduler service. |
get_ConnectedDomain Gets the name of the domain to which the TargetServer computer is connected. |
get_ConnectedUser Gets the name of the user that is connected to the Task Scheduler service. |
get_Context Gets or sets the identifier of the principal for the task. (Get) |
get_Count Gets the number of actions in the collection. |
get_Count Gets the number of registered tasks in the collection. |
get_Count Gets the number of running tasks in the collection. |
get_Count Gets the number of folders in the collection. |
get_Count Gets the number of name-value pairs in the collection. |
get_Count Gets the number of triggers in the collection. |
get_CurrentAction Gets the name of the current action that the running task is performing. |
get_Data Gets or sets additional data that is associated with the handler. (Get) |
get_Data Gets or sets the data that is associated with the task. (Get) |
get_Date Gets or sets the date and time when the task is registered. (Get) |
get_DaysInterval Gets or sets the interval between the days in the schedule. (Get) |
get_DaysOfMonth Gets or sets the days of the month during which the task runs. (Get) |
get_DaysOfWeek Gets or sets the days of the week during which the task runs. (Get) |
get_DaysOfWeek Gets or sets the days of the week in which the task runs. (Get) |
get_Deadline Gets or sets the amount of time after which the Task scheduler attempts to run the task during emergency Automatic maintenance, if the task failed to complete during regular Automatic maintenance. (Get) |
get_Definition Gets the definition of the task. |
get_Delay Gets or sets a value that indicates the amount of time between when the system is booted and when the task is started. (Get) |
get_Delay Gets or sets a value that indicates the amount of time between when the event occurs and when the task is started. (Get) |
get_Delay Gets or sets a value that indicates the amount of time between when the user logs on and when the task is started. (Get) |
get_Delay Gets or sets the amount of time between when the task is registered and when the task is started. (Get) |
get_Delay Gets or sets a value that indicates how long of a delay takes place before a task is started after a Terminal Server session state change is detected. (ISessionStateChangeTrigger.get_Delay) |
get_DeleteExpiredTaskAfter Gets or sets the amount of time that the Task Scheduler will wait before deleting the task after it expires. (Get) |
get_Description Gets or sets the description of the task. (Get) |
get_DisallowStartIfOnBatteries Gets or sets a Boolean value that indicates that the task will not be started if the computer is running on batteries. (Get) |
get_DisallowStartOnRemoteAppSession Gets or sets a Boolean value that specifies that the task will not be started if triggered to run in a Remote Applications Integrated Locally (RAIL) session. (Get) |
get_DisplayName Gets or sets the name of the principal. (Get) |
get_Documentation Gets or sets any additional documentation for the task. (Get) |
get_Duration Gets or sets how long the pattern is repeated. (Get) |
get_Enabled Gets or sets a Boolean value that indicates if the registered task is enabled. (Get) |
get_Enabled Gets or sets a Boolean value that indicates that the task is enabled. The task can be performed only when this setting is True. |
get_Enabled Gets or sets a Boolean value that indicates whether the trigger is enabled. (Get) |
get_EndBoundary Gets or sets the date and time when the trigger is deactivated. (Get) |
get_EnginePID Gets the process ID for the engine (process) which is running the task. |
get_Exclusive Indicates whether the Task scheduler must start the task during the Automatic maintenance in exclusive mode. (Get) |
get_ExecutionTimeLimit Gets or sets the amount of time that is allowed to complete the task. (Get) |
get_ExecutionTimeLimit Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run. (Get) |
get_From Gets or sets the email address that you want to send the email from. (Get) |
get_GroupId Gets or sets the identifier of the user group that is required to run the tasks that are associated with the principal. (Get) |
get_HeaderFields Gets or sets the header information in the email message to send. (Get) |
get_Hidden Gets or sets a Boolean value that indicates that the task will not be visible in the UI. (Get) |
get_HighestVersion Indicates the highest version of Task Scheduler that a computer supports. |
get_Id Gets or sets the identifier of the action. (Get) |
get_Id Gets or sets a GUID value that identifies a network profile. (Get) |
get_Id Gets or sets the identifier of the principal. (Get) |
get_Id Gets or sets the identifier for the trigger. (Get) |
get_IdleDuration Gets or sets a value that indicates the amount of time that the computer must be in an idle state before the task is run. (Get) |
get_IdleSettings Gets or sets the information that specifies how the Task Scheduler performs tasks when the computer is in an idle condition. (Get) |
get_InstanceGuid Gets the GUID identifier for this instance of the task. |
get_Interval Gets or sets the amount of time between each restart of the task. (Get) |
get_Item Gets a specified action from the collection. |
get_Item Gets the specified registered task from the collection. |
get_Item Gets the specified task from the collection. |
get_Item Gets the specified folder from the collection. |
get_Item Gets the specified name-value pair from the collection. |
get_Item Gets the specified trigger from the collection. |
get_LastRunTime Gets the time the registered task was last run. |
get_LastTaskResult Gets the results that were returned the last time the registered task was run. |
get_LogonType Gets or sets the security logon method that is required to run the tasks that are associated with the principal. (Get) |
get_MaintenanceSettings Gets or sets a pointer to pointer to an IMaintenanceSettingsobject that Task scheduler uses to perform a task during Automatic maintenance. (Get) |
get_MessageBody Gets or sets the message text that is displayed in the body of the message box. (Get) |
get_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyDOWTrigger.get_MonthsOfYear) |
get_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyTrigger.get_MonthsOfYear) |
get_MultipleInstances Gets or sets the policy that defines how the Task Scheduler deals with multiple instances of the task. (Get) |
get_Name Gets or sets the name of a network profile. (Get) |
get_Name Gets the name of the registered task. |
get_Name Gets the name of the task. |
get_Name Gets the name that is used to identify the folder that contains a task. |
get_Name Gets or sets the name that is associated with a value in a name-value pair. (Get) |
get_NetworkSettings Gets or sets the network settings object that contains a network profile identifier and name. (Get) |
get_NextRunTime Gets the time when the registered task is next scheduled to run. |
get_NumberOfMissedRuns Gets the number of times the registered task has missed a scheduled run. |
get_Path Gets or sets the path to an executable file. (Get) |
get_Path Gets the path to where the registered task is stored. |
get_Path Gets the path to where the task is stored. |
get_Path Gets the path to where the folder is stored. |
get_Period Gets or sets the amount of time the task needs to be once executed during regular Automatic maintenance. (Get) |
get_Principal Gets or sets the principal for the task that provides the security credentials for the task. (Get) |
get_Priority Gets or sets the priority level of the task. (Get) |
get_ProcessTokenSidType Gets or sets the task process security identifier (SID) type. (Get) |
get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IDailyTrigger.get_RandomDelay) |
get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyDOWTrigger.get_RandomDelay) |
get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyTrigger.get_RandomDelay) |
get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (ITimeTrigger.get_RandomDelay) |
get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IWeeklyTrigger.get_RandomDelay) |
get_RegistrationInfo Gets or sets the registration information used to describe a task, such as the description of the task, the author of the task, and the date the task is registered. (Get) |
get_Repetition Gets or sets a value that indicates how often the task is run and how long the repetition pattern is repeated after the task is started. (Get) |
get_ReplyTo Gets or sets the email address that you want to reply to. (Get) |
get_RequiredPrivilege Gets the required privilege of the task by index. |
get_RequiredPrivilegeCount Gets the number of privileges in the required privileges array. |
get_RestartCount Gets or sets the number of times that the Task Scheduler will attempt to restart the task. (Get) |
get_RestartInterval Gets or sets a value that specifies how long the Task Scheduler will attempt to restart the task. (Get) |
get_RestartOnIdle Gets or sets a Boolean value that indicates whether the task is restarted when the computer cycles into an idle condition more than once. (Get) |
get_RunLevel Gets or sets the identifier that is used to specify the privilege level that is required to run the tasks that are associated with the principal. (Get) |
get_RunOnLastDayOfMonth Gets or sets a Boolean value that indicates that the task runs on the last day of the month. (Get) |
get_RunOnLastWeekOfMonth Gets or sets a Boolean value that indicates that the task runs on the last week of the month. (Get) |
get_RunOnlyIfIdle Gets or sets a Boolean value that indicates that the Task Scheduler will run the task only if the computer is in an idle condition. (Get) |
get_RunOnlyIfNetworkAvailable Gets or sets a Boolean value that indicates that the Task Scheduler will run the task only when a network is available. (Get) |
get_SecurityDescriptor Gets or sets the security descriptor of the task. (Get) |
get_Server Gets or sets the name of the SMTP server that you use to send email from. (Get) |
get_Settings Gets or sets the settings that define how the Task Scheduler service performs the task. (Get) |
get_Source Gets or sets where the task originated from. For example, a task may originate from a component, service, application, or user. (Get) |
get_StartBoundary Gets or sets the date and time when the trigger is activated. (Get) |
get_StartWhenAvailable Gets or sets a Boolean value that indicates that the Task Scheduler can start the task at any time after its scheduled time has passed. (Get) |
get_State Gets the operational state of the registered task. |
get_State Gets an identifier for the state of the running task. |
get_StateChange Gets or sets the kind of Terminal Server session change that would trigger a task launch. (Get) |
get_StopAtDurationEnd Gets or sets a Boolean value that indicates if a running instance of the task is stopped at the end of the repetition pattern duration. (Get) |
get_StopIfGoingOnBatteries Gets or sets a Boolean value that indicates that the task will be stopped if the computer is going onto batteries. (Get) |
get_StopOnIdleEnd Gets or sets a Boolean value that indicates that the Task Scheduler will terminate the task if the idle condition ends before the task is completed. The idle condition ends when the computer is no longer idle. (Get) |
get_Subject Gets or sets the subject of the email message. (Get) |
get_Subscription Gets or sets a query string that identifies the event that fires the trigger. (Get) |
get_TargetServer Gets the name of the computer that is running the Task Scheduler service that the user is connected to. |
get_Title Gets or sets the title of the message box. (Get) |
get_To Gets or sets the email address or addresses that you want to send the email to. (Get) |
get_Triggers Gets or sets a collection of triggers used to start a task. (Get) |
get_Type Gets the type of action. |
get_Type Gets the type of the trigger. |
get_URI Gets or sets the URI of the task. (Get) |
get_UserId Gets or sets the identifier of the user. (Get) |
get_UserId Gets or sets the user identifier that is required to run the tasks that are associated with the principal. (Get) |
get_UserId Gets or sets the user for the Terminal Server session. When a session state change is detected for this user, a task is started. (Get) |
get_UseUnifiedSchedulingEngine Gets or sets a Boolean value that indicates that the Unified Scheduling Engine will be utilized to run this task. (Get) |
get_Value Gets or sets the value that is associated with a name in a name-value pair. (Get) |
get_ValueQueries Gets or sets a collection of named XPath queries. Each query in the collection is applied to the last matching event XML returned from the subscription query specified in the Subscription property. (Get) |
get_Version Gets or sets the version number of the task. (Get) |
get_Volatile Gets or sets a boolean value that indicates whether the task is automatically disabled every time Windows starts. (Get) |
get_WaitTimeout Gets or sets a value that indicates the amount of time that the Task Scheduler will wait for an idle condition to occur. (Get) |
get_WakeToRun Gets or sets a Boolean value that indicates that the Task Scheduler will wake the computer when it is time to run the task, and keep the computer awake until the task is completed. (Get) |
get_WeeksInterval Gets or sets the interval between the weeks in the schedule. (Get) |
get_WeeksOfMonth Gets or sets the weeks of the month during which the task runs. (Get) |
get_WorkingDirectory Gets or sets the directory that contains either the executable file or the files that are used by the executable file. (Get) |
get_Xml Gets the XML-formatted registration information for the registered task. |
get_XmlText Gets or sets an XML-formatted version of the collection. (Get) |
get_XmlText Gets or sets an XML-formatted version of the registration information for the task. (Get) |
get_XmlText Gets or sets the XML-formatted definition of the task. (Get) |
get_XmlText Gets or sets an XML-formatted definition of the task settings. (Get) |
GetAccountInformation Retrieves the account name for the work item. |
GetApplicationName This method retrieves the name of the application that the task is associated with. |
GetComment Retrieves the comment for the work item. |
GetContext Used to share the context between different steps and tasks that are in the same job instance. |
GetCreator Retrieves the name of the creator of the work item. |
GetErrorRetryCount Retrieves the number of times that the Task Scheduler will retry an operation when an error occurs. This method is not implemented. |
GetErrorRetryInterval Retrieves the time interval, in minutes, between Task Scheduler's attempts to run a work item if an error occurs. This method is not implemented. |
GetExitCode Retrieves the last exit code returned by the executable associated with the work item on its last run. The method also returns the exit code returned to Task Scheduler when it last attempted to run the work item. |
GetFlags Retrieves the flags that modify the behavior of any type of work item. |
GetFolder Gets a folder that contains tasks at a specified location. |
GetFolder Gets a folder of registered tasks. |
GetFolders Gets all the subfolders in the folder. |
GetIdleWait Retrieves the idle wait time for the work item. |
GetInput Gets the input variables for a task. |
GetInstances Returns all instances of the currently running registered task. |
GetMaxRunTime This method retrieves the maximum length of time, in milliseconds, the task can run before terminating. |
GetMostRecentRunTime Retrieves the most recent time the work item began running. |
GetNextRunTime Retrieves the next time the work item will run. |
GetPage This method retrieves one or more property sheet pages associated with a task object. |
GetParameters This method retrieves the task's command-line parameters. |
GetPriority This method retrieves the priority for the task. |
GetRunningTasks Gets a collection of running tasks. |
GetRunTimes Retrieves the work item run times for a specified time period. |
GetRunTimes Gets the times that the registered task is scheduled to run during a specified time. |
GetSecurityDescriptor Gets the security descriptor that is used as credentials for the registered task. |
GetSecurityDescriptor Gets the security descriptor for the folder. |
GetStatus Retrieves the status of the work item. |
GetTargetComputer The GetTargetComputer method returns the name of the computer on which ITaskScheduler is currently targeted. |
GetTask Gets a task at a specified location in a folder. |
GetTaskFlags This method returns the flags that modify the behavior of a task. |
GetTasks Gets all the tasks in the folder. |
GetTrigger Retrieves a task trigger. |
GetTrigger The GetTrigger method retrieves the current task trigger. |
GetTriggerCount Retrieves the number of triggers for the current work item. |
GetTriggerString Retrieves a string that describes the work item trigger. |
GetTriggerString The GetTriggerString method retrieves the current task trigger in the form of a string. This string appears in the Task Scheduler user interface in a form similar to "At 2PM every day, starting 5/11/97.". |
GetWorkingDirectory This method retrieves the task'sworking directory. |
GetWorkItemData Retrieves application-defined data associated with the work item. |
IsOfType The IsOfType method checks the object's type to verify that it supports a particular interface. |
NewTask Returns an empty task definition object to be filled in with settings and properties and then registered using the ITaskFolder::RegisterTaskDefinition method. |
NewWorkItem The NewWorkItem method creates a new work item, allocating space for the work item and retrieving its address. |
Next Retrieves the next specified number of tasks in the enumeration sequence. |
Pause Called to pause the COM handler. |
put_Actions Gets or sets a collection of actions performed by the task. (Put) |
put_AllowDemandStart Gets or sets a Boolean value that indicates that the task can be started by using either the Run command or the Context menu. (Put) |
put_AllowHardTerminate Gets or sets a Boolean value that indicates that the task may be terminated by the Task Scheduler service using TerminateProcess. (Put) |
put_Arguments Gets or sets the arguments associated with the command-line operation. (Put) |
put_Attachments Gets or sets the pointer to an array of attachments that is sent with the email message. (Put) |
put_Author Gets or sets the author of the task. (Put) |
put_Bcc Gets or sets the email address or addresses that you want to Bcc in the email message. (Put) |
put_Body Gets or sets the body of the email that contains the email message. (Put) |
put_Cc Gets or sets the email address or addresses that you want to Cc in the email message. (Put) |
put_ClassId Gets or sets the identifier of the handler class. (Put) |
put_Compatibility Gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with. (Put) |
put_Context Gets or sets the identifier of the principal for the task. (Put) |
put_Data Gets or sets additional data that is associated with the handler. (Put) |
put_Data Gets or sets the data that is associated with the task. (Put) |
put_Date Gets or sets the date and time when the task is registered. (Put) |
put_DaysInterval Gets or sets the interval between the days in the schedule. (Put) |
put_DaysOfMonth Gets or sets the days of the month during which the task runs. (Put) |
put_DaysOfWeek Gets or sets the days of the week during which the task runs. (Put) |
put_DaysOfWeek Gets or sets the days of the week in which the task runs. (Put) |
put_Deadline Gets or sets the amount of time after which the Task scheduler attempts to run the task during emergency Automatic maintenance, if the task failed to complete during regular Automatic maintenance. (Put) |
put_Delay Gets or sets a value that indicates the amount of time between when the system is booted and when the task is started. (Put) |
put_Delay Gets or sets a value that indicates the amount of time between when the event occurs and when the task is started. (Put) |
put_Delay Gets or sets a value that indicates the amount of time between when the user logs on and when the task is started. (Put) |
put_Delay Gets or sets the amount of time between when the task is registered and when the task is started. (Put) |
put_Delay Gets or sets a value that indicates how long of a delay takes place before a task is started after a Terminal Server session state change is detected. (ISessionStateChangeTrigger.put_Delay) |
put_DeleteExpiredTaskAfter Gets or sets the amount of time that the Task Scheduler will wait before deleting the task after it expires. (Put) |
put_Description Gets or sets the description of the task. (Put) |
put_DisallowStartIfOnBatteries Gets or sets a Boolean value that indicates that the task will not be started if the computer is running on batteries. (Put) |
put_DisallowStartOnRemoteAppSession Gets or sets a Boolean value that specifies that the task will not be started if triggered to run in a Remote Applications Integrated Locally (RAIL) session. (Put) |
put_DisplayName Gets or sets the name of the principal. (Put) |
put_Documentation Gets or sets any additional documentation for the task. (Put) |
put_Duration Gets or sets how long the pattern is repeated. (Put) |
put_Enabled Gets or sets a Boolean value that indicates if the registered task is enabled. (Put) |
put_Enabled Gets or sets a Boolean value that indicates whether the trigger is enabled. (Put) |
put_EndBoundary Gets or sets the date and time when the trigger is deactivated. (Put) |
put_Exclusive Indicates whether the Task scheduler must start the task during the Automatic maintenance in exclusive mode. (Put) |
put_ExecutionTimeLimit Gets or sets the amount of time that is allowed to complete the task. (Put) |
put_ExecutionTimeLimit Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run. (Put) |
put_From Gets or sets the email address that you want to send the email from. (Put) |
put_GroupId Gets or sets the identifier of the user group that is required to run the tasks that are associated with the principal. (Put) |
put_HeaderFields Gets or sets the header information in the email message to send. (Put) |
put_Hidden Gets or sets a Boolean value that indicates that the task will not be visible in the UI. (Put) |
put_Id Gets or sets the identifier of the action. (Put) |
put_Id Gets or sets a GUID value that identifies a network profile. (Put) |
put_Id Gets or sets the identifier of the principal. (Put) |
put_Id Gets or sets the identifier for the trigger. (Put) |
put_IdleDuration Gets or sets a value that indicates the amount of time that the computer must be in an idle state before the task is run. (Put) |
put_IdleSettings Gets or sets the information that specifies how the Task Scheduler performs tasks when the computer is in an idle condition. (Put) |
put_Interval Gets or sets the amount of time between each restart of the task. (Put) |
put_LogonType Gets or sets the security logon method that is required to run the tasks that are associated with the principal. (Put) |
put_MaintenanceSettings Gets or sets a pointer to pointer to an IMaintenanceSettingsobject that Task scheduler uses to perform a task during Automatic maintenance. (Put) |
put_MessageBody Gets or sets the message text that is displayed in the body of the message box. (Put) |
put_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyDOWTrigger.put_MonthsOfYear) |
put_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyTrigger.put_MonthsOfYear) |
put_MultipleInstances Gets or sets the policy that defines how the Task Scheduler deals with multiple instances of the task. (Put) |
put_Name Gets or sets the name of a network profile. (Put) |
put_Name Gets or sets the name that is associated with a value in a name-value pair. (Put) |
put_NetworkSettings Gets or sets the network settings object that contains a network profile identifier and name. (Put) |
put_Path Gets or sets the path to an executable file. (Put) |
put_Period Gets or sets the amount of time the task needs to be once executed during regular Automatic maintenance. (Put) |
put_Principal Gets or sets the principal for the task that provides the security credentials for the task. (Put) |
put_Priority Gets or sets the priority level of the task. (Put) |
put_ProcessTokenSidType Gets or sets the task process security identifier (SID) type. (Put) |
put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IDailyTrigger.put_RandomDelay) |
put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyDOWTrigger.put_RandomDelay) |
put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyTrigger.put_RandomDelay) |
put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (ITimeTrigger.put_RandomDelay) |
put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IWeeklyTrigger.put_RandomDelay) |
put_RegistrationInfo Gets or sets the registration information used to describe a task, such as the description of the task, the author of the task, and the date the task is registered. (Put) |
put_Repetition Gets or sets a value that indicates how often the task is run and how long the repetition pattern is repeated after the task is started. (Put) |
put_ReplyTo Gets or sets the email address that you want to reply to. (Put) |
put_RestartCount Gets or sets the number of times that the Task Scheduler will attempt to restart the task. (Put) |
put_RestartInterval Gets or sets a value that specifies how long the Task Scheduler will attempt to restart the task. (Put) |
put_RestartOnIdle Gets or sets a Boolean value that indicates whether the task is restarted when the computer cycles into an idle condition more than once. (Put) |
put_RunLevel Gets or sets the identifier that is used to specify the privilege level that is required to run the tasks that are associated with the principal. (Put) |
put_RunOnLastDayOfMonth Gets or sets a Boolean value that indicates that the task runs on the last day of the month. (Put) |
put_RunOnLastWeekOfMonth Gets or sets a Boolean value that indicates that the task runs on the last week of the month. (Put) |
put_RunOnlyIfIdle Gets or sets a Boolean value that indicates that the Task Scheduler will run the task only if the computer is in an idle condition. (Put) |
put_RunOnlyIfNetworkAvailable Gets or sets a Boolean value that indicates that the Task Scheduler will run the task only when a network is available. (Put) |
put_SecurityDescriptor Gets or sets the security descriptor of the task. (Put) |
put_Server Gets or sets the name of the SMTP server that you use to send email from. (Put) |
put_Settings Gets or sets the settings that define how the Task Scheduler service performs the task. (Put) |
put_Source Gets or sets where the task originated from. For example, a task may originate from a component, service, application, or user. (Put) |
put_StartBoundary Gets or sets the date and time when the trigger is activated. (Put) |
put_StartWhenAvailable Gets or sets a Boolean value that indicates that the Task Scheduler can start the task at any time after its scheduled time has passed. (Put) |
put_StateChange Gets or sets the kind of Terminal Server session change that would trigger a task launch. (Put) |
put_StopAtDurationEnd Gets or sets a Boolean value that indicates if a running instance of the task is stopped at the end of the repetition pattern duration. (Put) |
put_StopIfGoingOnBatteries Gets or sets a Boolean value that indicates that the task will be stopped if the computer is going onto batteries. (Put) |
put_StopOnIdleEnd Gets or sets a Boolean value that indicates that the Task Scheduler will terminate the task if the idle condition ends before the task is completed. The idle condition ends when the computer is no longer idle. (Put) |
put_Subject Gets or sets the subject of the email message. (Put) |
put_Subscription Gets or sets a query string that identifies the event that fires the trigger. (Put) |
put_Title Gets or sets the title of the message box. (Put) |
put_To Gets or sets the email address or addresses that you want to send the email to. (Put) |
put_Triggers Gets or sets a collection of triggers used to start a task. (Put) |
put_URI Gets or sets the URI of the task. (Put) |
put_UserId Gets or sets the identifier of the user. (Put) |
put_UserId Gets or sets the user identifier that is required to run the tasks that are associated with the principal. (Put) |
put_UserId Gets or sets the user for the Terminal Server session. When a session state change is detected for this user, a task is started. (Put) |
put_UseUnifiedSchedulingEngine Gets or sets a Boolean value that indicates that the Unified Scheduling Engine will be utilized to run this task. (Put) |
put_Value Gets or sets the value that is associated with a name in a name-value pair. (Put) |
put_ValueQueries Gets or sets a collection of named XPath queries. Each query in the collection is applied to the last matching event XML returned from the subscription query specified in the Subscription property. (Put) |
put_Version Gets or sets the version number of the task. (Put) |
put_Volatile Gets or sets a boolean value that indicates whether the task is automatically disabled every time Windows starts. (Put) |
put_WaitTimeout Gets or sets a value that indicates the amount of time that the Task Scheduler will wait for an idle condition to occur. (Put) |
put_WakeToRun Gets or sets a Boolean value that indicates that the Task Scheduler will wake the computer when it is time to run the task, and keep the computer awake until the task is completed. (Put) |
put_WeeksInterval Gets or sets the interval between the weeks in the schedule. (Put) |
put_WeeksOfMonth Gets or sets the weeks of the month during which the task runs. (Put) |
put_WorkingDirectory Gets or sets the directory that contains either the executable file or the files that are used by the executable file. (Put) |
put_XmlText Gets or sets an XML-formatted version of the collection. (Put) |
put_XmlText Gets or sets an XML-formatted version of the registration information for the task. (Put) |
put_XmlText Gets or sets the XML-formatted definition of the task. (Put) |
put_XmlText Gets or sets an XML-formatted definition of the task settings. (Put) |
Refresh Refreshes all of the local instance variables of the task. |
RegisterTask Registers (creates) a new task in the folder using XML to define the task. |
RegisterTaskDefinition Registers (creates) a task in a specified location using the ITaskDefinition interface to define a task. |
Remove Removes the specified action from the collection. |
Remove Removes a selected name-value pair from the collection. |
Remove Removes the specified trigger from the collection of triggers used by the task. |
Reset Resets the enumeration sequence to the beginning. (IEnumWorkItems.Reset) |
Resume Called to resume the COM handler. |
Run Sends a request to the Task Scheduler service to run the work item. |
Run Runs the registered task immediately. |
RunEx Runs the registered task immediately using specified flags and a session identifier. |
SetAccountInformation Sets the account name and password used to run the work item. |
SetApplicationName This method assigns a specific application to the current task. |
SetComment Sets the comment for the work item. |
SetCreator Sets the name of the work item's creator. |
SetErrorRetryCount Sets the number of times Task Scheduler will try to run the work item again if an error occurs. This method is not implemented. |
SetErrorRetryInterval Sets the time interval, in minutes, between Task Scheduler's attempts to run a work item after an error occurs. This method is not implemented. |
SetFlags Sets the flags that modify the behavior of any type of work item. |
SetIdleWait Sets the minutes that the system must be idle before the work item can run. |
SetMaxRunTime This method sets the maximum time the task can run, in milliseconds, before terminating. |
SetOutput Sets the output variables for a task. |
SetParameters This method sets the command-line parameters for the task. |
SetPriority This method sets the priority for the task. |
SetSecurityDescriptor Sets the security descriptor that is used as credentials for the registered task. |
SetSecurityDescriptor Sets the security descriptor for the folder. |
SetTargetComputer The SetTargetComputer method selects the computer that the ITaskScheduler interface operates on, allowing remote task management and enumeration. |
SetTaskFlags This method sets the flags that modify the behavior of a scheduled task. |
SetTrigger The SetTrigger method sets the trigger criteria for a task trigger. |
SetWorkingDirectory This method sets the working directory for the task. |
SetWorkItemData This method stores application-defined data associated with the work item. |
Skip Skips the next specified number of tasks in the enumeration sequence. |
Start Called to start the COM handler. |
Stop Stops the registered task immediately. |
Stop Stops this instance of the task. |
Stop Called to stop the COM handler. |
TaskCompleted Tells the Task Scheduler that the COM handler is completed. |
Terminate This method ends the execution of the work item. |
UpdateStatus Tells the Task Scheduler about the percentage of completion of the COM handler. |
IAction Provides the common properties inherited by all action objects. |
IActionCollection Contains the actions that are performed by the task. |
IBootTrigger Represents a trigger that starts a task when the system is started. |
IComHandlerAction Represents an action that fires a handler. |
IDailyTrigger Represents a trigger that starts a task based on a daily schedule. |
IEmailAction Represents an action that sends an email message. |
IEnumWorkItems Provides the methods for enumerating the tasks in the Scheduled Tasks folder. |
IEventTrigger Represents a trigger that starts a task when a system event occurs. |
IExecAction Represents an action that executes a command-line operation. |
IIdleSettings Specifies how the Task Scheduler performs tasks when the computer is in an idle condition. |
IIdleTrigger Represents a trigger that starts a task when the computer goes into an idle state. |
ILogonTrigger Represents a trigger that starts a task when a user logs on. |
IMaintenanceSettings Provides the settings that the Task Scheduler uses to perform task during Automatic maintenance. |
IMonthlyDOWTrigger Represents a trigger that starts a task on a monthly day-of-week schedule. |
IMonthlyTrigger Represents a trigger that starts a job based on a monthly schedule. |
INetworkSettings Provides the settings that the Task Scheduler service uses to obtain a network profile. |
IPrincipal Provides the security credentials for a principal. |
IPrincipal2 Provides the extended settings applied to security credentials for a principal. |
IProvideTaskPage Provides the methods to access the property sheet settings of a task. |
IRegisteredTask Provides 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. |
IRegisteredTaskCollection Contains all the tasks that are registered. |
IRegistrationInfo Provides the administrative information that can be used to describe the task. |
IRegistrationTrigger Represents a trigger that starts a task when the task is registered or updated. |
IRepetitionPattern Defines how often the task is run and how long the repetition pattern is repeated after the task is started. |
IRunningTask Provides the methods to get information from and control a running task. |
IRunningTaskCollection Provides a collection that is used to control running tasks. |
IScheduledWorkItem Provides the methods for managing specific work items. |
ISessionStateChangeTrigger Triggers tasks for console connect or disconnect, remote connect or disconnect, or workstation lock or unlock notifications. |
IShowMessageAction Represents an action that shows a message box when a task is activated. |
ITask Provides the methods for running tasks, getting or setting task information, and terminating tasks. It is derived from the IScheduledWorkItem interface and inherits all the methods of that interface. |
ITaskDefinition Defines all the components of a task, such as the task settings, triggers, actions, and registration information. |
ITaskFolder Provides 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. |
ITaskFolderCollection Provides information and control for a collection of folders that contain tasks. |
ITaskHandler Defines the methods that are called by the Task Scheduler service to manage a COM handler. |
ITaskHandlerStatus Provides the methods that are used by COM handlers to notify the Task Scheduler about the status of the handler. |
ITaskNamedValueCollection Contains a collection of ITaskNamedValuePair interface name-value pairs. |
ITaskNamedValuePair Creates a name-value pair in which the name is associated with the value. |
ITaskScheduler Provides the methods for scheduling tasks. |
ITaskService Provides access to the Task Scheduler service for managing registered tasks. |
ITaskSettings Provides the settings that the Task Scheduler service uses to perform the task. |
ITaskSettings2 Provides the extended settings that the Task Scheduler uses to run the task. (ITaskSettings2) |
ITaskSettings3 Provides the extended settings that the Task Scheduler uses to run the task. (ITaskSettings3) |
ITaskTrigger Provides the methods for accessing and setting triggers for a task. Triggers specify task start times, repetition criteria, and other parameters that control when a task is run. |
ITaskVariables Defines task variables that can be passed as parameters to task handlers and external executables that are launched by tasks. |
ITimeTrigger Represents a trigger that starts a task at a specific date and time. |
ITrigger Provides the common properties that are inherited by all trigger objects. |
ITriggerCollection Provides the methods that are used to add to, remove from, and get the triggers of a task. |
IWeeklyTrigger Represents a trigger that starts a task based on a weekly schedule. |
DAILY Defines the interval, in days, at which a task is run. |
MONTHLYDATE Defines the day of the month the task will run. |
MONTHLYDOW Defines the date(s) that the task runs by month, week, and day of the week. |
TASK_TRIGGER Defines the times to run a scheduled work item. |
TRIGGER_TYPE_UNION Defines the invocation schedule of the trigger within the Type member of a TASK_TRIGGER structure. |
WEEKLY Defines the interval, in weeks, between invocations of a task. |
Training
Module
Create and manage scheduled jobs using Windows PowerShell - Training
Create and manage scheduled jobs using Windows PowerShell