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: ULONGQualifiers: [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: ULONGQualifiers: [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

Development Requirements

See Also


Send comments about this topic to Microsoft.