GetAutoUpgradeConfigs Method in Class SMS_Site

 

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

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

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

Syntax

SInt32 GetAutoUpgradeConfigs(
     String ClientVersion,
     Boolean IsProgramEnabled,
     UInt32 AdvertisementDuration,
     UInt32 ValidationInterval,
     UInt32 ValidationFailureInterval,
     Boolean AllowPrestage,
     Boolean AllowFallbackToContentSource,
     UInt32 DownloadOptionsInSlowNetwork,
     Boolean IsInitialized
     DateTime LastModifiedTime,
     String LastModifiedBy
);

Parameters

  • ClientVersion
    Data type: String

    Qualifiers: [out]

    The version of the client.

  • IsProgramEnabled
    Data type: Boolean

    Qualifiers: [out]

    true if the program is enabled.

  • AdvertisementDuration
    Data type: UInt32

    Qualifiers: [out]

    Advertisement duration in days.

  • ValidationInterval
    Data type: UInt32

    Qualifiers: [out]

    Validation interval in hours, if the previous validation is successful.

  • ValidationFailureInterval
    Data type: UInt32

    Qualifiers: [out]

    Validation interval in hours, if the previous validation is failed.

  • AllowPrestage
    Data type: Boolean

    Qualifiers: [out]

    true if auto-upgrade package distributed to pre-stage distribution point is allowed.

  • AllowFallbackToContentSource
    Data type: Boolean

    Qualifiers: [out]

    true if fallback to content source is allowed.

  • DownloadOptionInSlowNetwork
    Data type: UInt32

    Qualifiers: [out]

    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.

  • IsInitialized
    Data type: Boolean

    Qualifiers: [out]

    true if auto-upgrade settings are initialized.

  • LastModifiedTime
    Data type: DateTime

    Qualifiers: [out]

    Last modified time.

    This information applies to System Center 2012 Configuration Manager SP1 or later, and System Center 2012 R2 Configuration Manager or later.

  • LastModifiedBy
    Data type: String

    Qualifiers: [out]

    The name of the user that made the last modification.

    This information applies to System Center 2012 Configuration Manager SP1 or later, and System Center 2012 R2 Configuration Manager or later.

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

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

SMS_Site Server WMI Class