CreateScheduledTask method of the MSFT_FSRMScheduledTask class

Creates a scheduled task object that will be consumed by other jobs.

Windows Server 2008 R2 and Windows Server 2008:  To schedule a task use the IFsrmReportScheduler interface.

Syntax


uint64 CreateScheduledTask(
  [in]  datetime               Time,
  [in]  sint32                 RunDuration,
  [in]  uint32                 Weekly[],
  [in]  sint32                 Monthly[],
  [out] MSFT_FSRMScheduledTask ScheduledTask
);

Parameters

Time [in]

Date Time value in standard UTC formats. Required.

RunDuration [in]

The number of hours to continue the task before termination. Optional.

Weekly [in]

A list of days on which to execute the task. Optional.

Sunday (0)

Monday (1)

Tuesday (2)

Wednesday (3)

Thursday (4)

Friday (5)

Saturday (6)

Monthly [in]

An integer between -1 and 31. Optional.

The value -1 refers to the last day of a month.

An error will be returned if a value of 0 is specified.

ScheduledTask [out]

Returns an instance of the MSFT_FSRMScheduledTask class.

Examples

For an example see Scheduling a Storage Report using WMI.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\Microsoft\Windows\FSRM

MOF

MSFT_FSRM.mof

DLL

SrmSvc.dll

See also

MSFT_FSRMScheduledTask

 

 

Show: