RegisteredTask.GetRunTimes method

For scripting, gets the times that the registered task is scheduled to run during a specified time.

Syntax

RegisteredTask.GetRunTimes( _
  ByVal begin, _
  ByVal end, _
  ByRef count, _
  ByRef rgstTaskTimes _
)

Parameters

begin [in]

The starting time for the query.

end [in]

The ending time for the query.

count [out]

The number of scheduled times the task will run.

rgstTaskTimes [out]

The scheduled times that the task will run.

Return value

This method does not return a value.

Remarks

If the registered task contains triggers that are individually disabled, these triggers will still affect the next scheduled run time that is returned even though they are disabled.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Type library

Taskschd.tlb

DLL

Taskschd.dll

See also

Task Scheduler
RegisteredTask

 

 

Community Additions

ADD
Show:
© 2014 Microsoft