IFsrmReportScheduler::ModifyScheduleTask method

[Starting with Windows Server 2012 this method is not supported; use the MSFT_FSRMScheduledTask WMI class to manage scheduled tasks.]

Modifies a task that is used to trigger a report job.

Syntax

HRESULT ModifyScheduleTask(
  BSTR    taskName,
  VARIANT *namespacesSafeArray,
  BSTR    serializedTask
);

Parameters

taskName

The name of a Task Scheduler task to modify. The string is limited to 230 characters.

namespacesSafeArray

A VARIANT that contains a SAFEARRAY of local directory paths to verify (see Remarks). Each element of the array is a variant of type VT_BSTR. Use the bstrVal member of the variant to set the path.

serializedTask

An XML string that defines the Task Scheduler job. For details, see Task Scheduler Schema.

Return Value

The method returns the following return values.

Remarks

Specify the same namespaces for this method that you specified for the IFsrmReportJob::NamespaceRoots property. This method validates the namespace paths. For validation details, see the Remarks section of IFsrmReportScheduler::VerifyNamespaces.

Requirements

   
Windows version None supported Windows Server 2008
Target Platform Windows
Header fsrmreports.h (include FsrmReports.h, FsrmTlb.h)
DLL SrmSvc.dll

See Also

FsrmReportScheduler

IFsrmReportScheduler