The UpdateAutoUpgradeConfigs Windows Management Instrumentation (WMI) class method, in Configuration Manager, updates configurations for auto-upgrade settings.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

SInt32 UpdateAutoUpgradeConfigs(
	 String ClientVersion,
	 Boolean IsProgramEnabled,
	 UInt32 AdvertisementDuration,
	 UInt32 ValidationInterval,
	 UInt32 ValidationFailureInterval,
	 Boolean AllowPrestage,
	 Boolean AllowFallbackToContentSource,
	 UInt32 DownloadOptionsInSlowNetwork,
);

Parameters

ClientVersion

Data type: StringQualifiers: [in]The version of the client.
IsProgramEnabled

Data type: BooleanQualifiers: [in]true if the program is enabled.
AdvertisementDuration

Data type: UInt32Qualifiers: [in]Advertisement duration in days.
ValidationInterval

Data type: UInt32Qualifiers: [in]Validation interval in hours, if the previous validation is successful.
ValidationFailureInterval

Data type: UInt32Qualifiers: [in]Validation interval in hours, if the previous validation is failed.
AllowPrestage

Data type: BooleanQualifiers: [in]true if auto-upgrade package distributed to pre-stage distribution point is allowed.
AllowFallbackToContentSource

Data type: BooleanQualifiers: [in]true if fallback to content source is allowed.
DownloadOptionInSlowNetwork

Data type: UInt32Qualifiers: [in]Download options in slow network. Possible values are:

0

Do not download.

1

Download from distribution point and run locally.

2

Run from distribution point.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Requirements

Runtime Requirements

Development Requirements

See Also