| description | Learn how to use the ReloadImageProperties method in class SMS_OperatingSystemInstallPackage reload metadata from the source .wim file and synchronize the metadata with the database. |
|---|---|
| title | ReloadImageProperties method in class SMS_OperatingSystemInstallPackage |
| ms.date | 09/20/2016 |
| ms.subservice | sdk |
| ms.topic | reference |
| ms.collection | tier3 |
The ReloadImageProperties Windows Management Instrumentation WMI class method, in Configuration Manager, reloads metadata from the source .wim file and synchronizes the metadata with the database.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 ReloadImageProperties();
None.
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.
Your application uses this method to update the .wim file associated with the operating system install package. The update is based on the location defined in the PkgSourcePath property of SMS_OperatingSystemInstallPackage Server WMI Class.
The application must:
-
Establish a connection to the SMS Provider. For more information, see About the SMS Provider in Configuration Manager.
-
Get the
SMS_OperatingSystemInstallPackageobject to update. -
Call the
ReloadImagePropertiesmethod. -
Commit the
SMS_OperatingSystemInstallPackageobject.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
SMS_OperatingSystemInstallPackage Server WMI Class GetImageProperties Method in Class SMS_OperatingSystemInstallPackage