The ImportInventoryReport Windows Management Instrumentation (WMI) class method, in System Center 2012 Configuration Manager, imports an inventory class from the MOF file content.

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

sint32 ImportInventoryReport(   
	 string InventoryReportID,
	 uint32 ImportType,
	 string MofBuffer



Data type: StringQualifiers: [in]Inventory report ID.

Data type: UInt32Qualifiers: [in]Import type. Possible values are:

Value Description


ClassOnly: Imports only the inventory class. This option is only available at the central site or a standalone primary site.


ReportOnly: Imports only the inventory report.


BothClassAndReport: Imports both inventory class definition and inventory report information.


Data type: StringQualifiers: [in]The MOF content that contains the inventory class or report to import. This is the same format as the Configuration Manager 2007 sms_def.mof file, or the file format that you export from inventory client settings.

Return Values

An SInt32data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.


Runtime Requirements

Development Requirements

See Also