GetImageProperties Method in Class SMS_VhdPackage
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
The GetImageProperties Windows Management Instrumentation (WMI) class method, in Configuration Manager, reads all the metadata from the specified .wim source file and returns an XML document containing the image metadata.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
Syntax
SInt32 GetImageProperties(
String SourceImagePath,
String ImageProperty
);
Parameters
SourceImagePath
Data type: StringQualifiers: [in]
Path to the .wim source file to query for metadata, for example, \\server\share\boot.wim.
ImageProperty
Data type: StringQualifiers: [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_ImagePackage Server WMI Class. For more information, see How to View the Properties for an Operating System Image.
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_VhdPackage Server WMI Class
ReloadImageProperties Method in Class SMS_VhdPackage