Share via


Enabling the Report Feature for Existing Classes and Properties

Before you create a class and write a provider, check the SMS_def.mof file to see if your class or property exists, but is simply disabled. SMS defines over 650 properties in SMS_def.mof, but only 200 are enabled. If your component is disabled, you can edit the SMS_def.mof and set its reporting value to TRUE. After the file is compiled, SMS provides the inventory data for you.

Note  You can use the MOF Manager Tool (MOFMan.exe) in the Microsoft® BackOffice Resource Kit to edit the SMS_def.mof file.

For example, if you wanted to report the ConfigurationPath property in the Win32_BootConfiguration class, you would change the SMS_Report qualifier from FALSE to TRUE.

    [SMS_Report(TRUE),
    SMS_Group_Name("Boot Configuration"),
    ResID(400),ResDLL("SMS_RXPL.dll"),
    SMS_Class_ID("MICROSOFT|BOOT_CONFIGURATION|1.0")]
class Win32_BootConfiguration : SMS_Class_Template
{
    [SMS_Report(TRUE)] string    BootDirectory;
    [SMS_Report(TRUE)] string    ConfigurationPath;
    ...
};