This article was previously published under Q314141
The Hardware Inventory client component that is included with Systems Management Server (SMS) cannot obtain information from classes outside of the Root\Cimv2 or Root\Cimv2\Sms namespaces.
Windows Management Instrumentation (WMI) version 1.5 includes a View provider. This provider can provide instances in a user-defined class that is based on the instance data of a class or classes in another namespace. You can use the View provider to create a new class in the Root\Cimv2 or Root\Cimv2\Sms namespace that provides instance data that is generated from the instance data of a class that may be located in an alternate namespace.
For more information about the WMI View provider, see the WMI SDK that is included in the Microsoft Platform SDK.
The Root\Cimv2 namespace is the default namespace that is used by the SMS Hardware Inventory client component to obtain instance information for a given class. To specify that a class is located in the Root\Cimv2\Sms namespace, you must place the SMS_Namespace qualifier on the corresponding class instance in the Sms_def.mof file. The SMS_Namespace qualifier is documented and used in the default Sms_def.mof file.
Creating a Sample Class
The following sample describes how to create the ABC123View class in the Root\Cimv2 namespace to provide instance data from the ABC123 class in the Root\Someothernamespace namespace for SMS hardware inventory purposes.
First, for SMS Hardware Inventory to be able to collect the appriate data, place the linked class in the Root\Cimv2 or Root\Cimv2\Sms namespace. To create the class instance and to use the View provider to link the class instance to the class that is contained in the other namespace, add the following information to the Sms_def.mof file.:
Then, to instruct the SMS Hardware Inventory client component to collect instance data for the new class, create another new class that is derived from SMS_Class_Template in the Root\Cimv2\Sms namespace. For this example, add the following text to the Sms_def.mof file: