SMS_PackageToContent Server WMI Class

 

Updated: November 1, 2013

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

The SMS_PackageToContent Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that relates a Configuration Manager package to its content.

Class SMS_PackageToContent : SMS_BaseClass
{
      SInt32 ContentID;
      String ContentSubFolder;
      String ContentUniqueID;
      SInt32 ContentVersionInPkg;
      SInt32 MinPackageVersion;
      String PackageID;
      UInt32 PackageType;
      UInt32 SecuredTypeID;
      String SecureObjectID;
};

The following table lists the methods in SMS_PackageToContent.

Method

Description

IsContentValid Method in Class SMS_PackageToContent

Determines if the package content is valid.

ContentID

Data type: SInt32

Access type: Read/Write

Qualifiers: [key, Not_null]

The value of the ContentID property of the package.

ContentSubFolder

Data type: String

Access type: Read/Write

Qualifiers: [Not_null]

The name of the subfolder in the package source folder that contains the files for the content.

ContentUniqueID

Data type: String

Access type: Read-only

Qualifiers: [read, Not_null]

The unique ID for the content.

ContentVersionInPkg

Data type: SInt32

Access type: Read/Write

Qualifiers: [Not_null]

The version of the content in the package.

MinPackageVersion

Data type: SInt32

Access type: Read/Write

Qualifiers: [Not_null]

The minimum package version in which the content appears.

PackageID

Data type: String

Access type: Read/Write

Qualifiers: [key, Not_null]

Configuration Manager-specific ID of the package.

PackageType

Data type: UInt32

Access type: Read/Write

Qualifiers: [enumeration]

The type of the package. Possible values are:

Value

Description

0

PKG_TYPE_REGULAR

3

PKG_TYPE_DRIVER

4

PKG_TYPE_TASK_SEQUENCE

5

PKG_TYPE_SWUPDATES

257

PKG_TYPE_IMAGE

258

PKG_TYPE_BOOTIMAGE

259

PKG_TYPE_OSINSTALLIMAGE

SecuredTypeID

Data type: UInt32

Access type: Read-only

Qualifiers: [read]

Secured type of related package.

SecureObjectID

Data type: String

Access type: Read/Write

Qualifiers: None

Secure object ID. For app, it is model name. For others, it is package ID.

Class qualifiers for this class include:

  • Secured

  • Read (read-only)

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Your application can query this class to get the list of contents contained by a package or the list of packages that contain specified content.

Show: