The AddUpdateContent Windows Management Instrumentation (WMI) class method, in Configuration Manager, downloads content to a software update package and replicates the content to distribution points.

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

SInt32 AddUpdateContent(
	 UInt32 ContentIDs[],
	 String ContentSourcePath[],
	 Boolean bRefreshDPs
);

Parameters

ContentIDs

Data type: UInt32 ArrayQualifiers: [in]IDs of contents to add to the software updates package.
ContentSourcePath

Data type: String ArrayQualifiers: [in]The source path where the content files are located.
bRefreshDPs

Data type: BooleanQualifiers: [in, optional]true (default) to replicate package content to the distribution points.

Return Values

The method returns an exception on failure.

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

Remarks

This method first creates the SMS_SoftwareUpdatesPackage Server WMI Class object and then adds the indicated content. Your application can use SMS_CIToContent Server WMI Class and SMS_CIContentFiles Server WMI Class to determine the content.

Requirements

Runtime Requirements

Development Requirements

See Also