MSFT_FSRMScheduledTask class
Represents a FSRM scheduled task object
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Windows Server 2008 R2 and Windows Server 2008: To schedule a task or manage scheduled tasks use the IFsrmReportScheduler interface.
Syntax
[dynamic, provider("FSRMWmiProvider")]
class MSFT_FSRMScheduledTask
{
datetime Time;
sint32 RunDuration;
uint32 Weekly[];
sint32 Monthly[];
datetime NextRunTime;
string LegacyTaskName;
};
Members
The MSFT_FSRMScheduledTask class has these types of members:
Methods
The MSFT_FSRMScheduledTask class has these methods.
Method | Description |
---|---|
CreateScheduledTask | Creates a scheduled task object that will be consumed by other jobs. |
Properties
The MSFT_FSRMScheduledTask class has these properties.
-
LegacyTaskName
-
-
Data type: string
-
Access type: Read-only
The name of an incompatible schedule task object that is not supported. This will happen in upgrade scenarios. This value should be the name of the task. This property will be empty if the schedule is compatible with the current schema. If this property exists it's recommended to re-create the scheduled task.
-
-
Monthly
-
-
Data type: sint32 array
-
Access type: Read/write
-
-
1 31
-
Represents the specified day of the month.
-
-1
-
Represents the last day of the month.
An optional array of integers between -1 and 31 representing the days of the month on which the task should be run.
The value -1 refers to the last day of a month.
An error will be returned if a value of 0 is specified.
Required if the Weekly property is not specified and may not be specified if the Weekly property is specified.
NextRunTime
-
Data type: datetime
-
Access type: Read-only
Specifies when the task is next scheduled to run.
RunDuration
-
Data type: sint32
-
Access type: Read/write
The number of hours to continue the task before termination. Optional.
Time
-
Data type: datetime
-
Access type: Read/write
Date Time value in standard UTC formats. Required.
Weekly
-
Data type: uint32 array
-
Access type: Read/write
A list of days on which to execute the task. Required if the Monthly property is not specified and may not be specified if the Monthly property is specified.
Sunday (0)
Monday (1)
Tuesday (2)
Wednesday (3)
Thursday (4)
Friday (5)
Saturday (6)
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 |
|
DLL |
|