Partager via


ICCMUpdatesDeployment::SetUserDefinedSchedule Method

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The SetUserDefinedSchedule method, in Configuration Manager, sets the user-defined software updates schedule that determines when all required, but not installed, updates are automatically installed on the target computer.

  [IDL]
HRESULT SetUserDefinedSchedule(
      const ULONG ulRecurrenceDays,
      const ULONG ulHour
);

Parameters

  • ulRecurrenceDays
    Data type: ULONG

    Qualifiers: [in]

    The day value to set for software update recurrence. Possible values are:

    0

    NONE

    1

    SUNDAY

    2

    MONDAY

    3

    TUESDAY

    4

    WEDNESDAY

    5

    THURSDAY

    6

    FRIDAY

    7

    SATURDAY

    8

    DAILY

  • ulHour
    Data type: ULONG

    Qualifiers: [in]

    The hour value to set for software update recurrence. Possible values are 0 through 23.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

  • S_OK
    The method succeeded.

Remarks

Setting 0 for the ulRecurrenceDays parameter and 0 for the ulHour parameter removes the schedule.

Requirements

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

ICCMUpdatesDeployment Interface
ICCMUpdatesDeployment::GetUserDefinedSchedule Method
About Software Updates Deployments
How to Set the Local Software Updates Schedule