共用方式為


GetImageProperties Method in Class SMS_BootImagePackage

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

In Configuration Manager, the GetImageProperties Windows Management Instrumentation (WMI) class method reads all metadata from the specified .wim source file for a boot image to an XML string.

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

SInt32 GetImageProperties(
      String SourceImagePath,
      String ImageProperty
);

Parameters

  • SourceImagePath
    Data type: String

    Qualifiers: [in]

    Path to the .wim source file to query for metadata.

  • ImageProperty
    Data type: String

    Qualifiers: [out]

    XML document containing the image metadata.

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.

Remarks

This method accesses the source .wim file metadata by using the ImageProperty property of SMS_BootImagePackage Server WMI Class.

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

Reference

SMS_BootImagePackage Server WMI Class

Concepts

ReloadImageProperties Method in Class SMS_BootImagePackage
Operating System Deployment Image Management