In Configuration Manager, the ExportDefaultBootImage Windows Management Instrumentation (WMI) class method finalizes a boot image and then exports the image from the specified source to the specified location.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 ExportDefaultBootImage( String Architecture, UInt32 ImageIndex, String ExportImagePath );
- Data type: StringQualifiers: [in]Operating system
architecture of the boot image. Possible values are:
I386 32-bit microprocessor
Itanium 64-bit microprocessor
X86-64 64-bit microprocessor
- Data type: UInt32Qualifiers: [in]The index of the boot image in the Windows Automated Installation Kit source that is used by Configuration Manager setup.
- Data type: StringQualifiers: [in]The destination path of the boot image to export, for example, c:\winPE\boot.wim.
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.
|Because Configuration Manager uses this method in importing the operating system, be sure to use secure programming techniques in your application or script.|
The ExportDefaultBootImage method is not thread-safe.
This method finalizes a boot image by adding components or deleting old components to reduce the image size. Each .wim file can contain multiple images, but the export occurs only for the boot image.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
Send comments about this topic to Microsoft.