TaskService.NewTask method

For scripting, returns an empty task definition object to be filled in with settings and properties and then registered using the TaskFolder.RegisterTaskDefinition method.

Syntax

TaskService.NewTask( _
  ByVal flags _
)

Parameters

flags [in]

This parameter is reserved for future use and must be set to 0.

Return value

The task definition that specifies all the information required to create a new task.

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