Share via


SMS_ST_RecurWeekly

The SMS_ST_RecurWeekly WMI class enables scheduling of events that occur at weekly intervals, regardless of the week's sequence in any month, such as every third week on Wednesday.

The following syntax is simplified from MOF code and includes all inherited properties.

Class SMS_ST_RecurWeekly : SMS_ScheduleToken
{
  uint32 Day;
  uint32 DayDuration;
  uint32 ForNumberOfWeeks;
  uint32 HourDuration;
  boolean IsGMT;
  uint32 MinuteDuration;
  datetime StartTime;
};

Properties

  • Day
    Data type: uint32

    Scheduled day of the week the event is to occur. Default is 1, Sunday.

    Value Meaning
    1 Sunday
    2 Monday
    3 Tuesday
    4 Wednesday
    5 Thursday
    6 Friday
    7 Saturday
  • DayDuration
    Data type: uint32

    Number of days during which the scheduled action occurs. Allowable values are in the range 0 - 31. A value of 0 indicates that the scheduled action continues indefinitely. Default is 0, indefinitely.

  • ForNumberOfWeeks
    Data type: uint32

    Number of weeks between events. Allowable values are in the range 1 - 4. Default is 1, every week.

  • HourDuration
    Data type: uint32

    Number of hours during which the scheduled action occurs. Allowable values are in the range 0 - 23. Default is 0, no duration.

  • IsGMT
    Data type: boolean

    Indicates whether the time is GMT. A value of FALSE means local time is used. Default is false, local time.

  • MinuteDuration
    Data type: uint32

    Number of minutes during which the scheduled action occurs. Allowable values are in the range 0 - 59. Default is 0, no duration.

  • StartTime
    Data type: datetime

    Date and time when the scheduled action takes place. Default is January, 1, 1990.

See Also

Scheduling Classes, SMS_ScheduleMethods, SMS_ScheduleToken, SMS_ST_NonRecurring, SMS_ST_RecurInterval, SMS_ST_RecurMonthlyByDate, SMS_ST_RecurMonthlyByWeekday