Appendix A: Extending Systems Management Server 2003 and System Center Configuration Manager by Editing SMS_def.mof

Team members can extend the Systems Management Server 2003 and System Center Configuration Manager hardware inventory collection process by editing the SMS_def.mof file. The file edit causes the inventory collection process to retrieve the additional WMI items that Microsoft Deployment places on the target computer during the ZTITattoo.msf script phase.

To edit the SMS_def.mof file

  1. Open SMS_def.mof.

  2. Add the following code to the bottom of the SMS_def.mof file:

    #pragma namespace ("\\\\.\\root\\cimv2\\sms")
    
    

[ SMS_Report     (True),   SMS_Group_Name ("Microsoft BDD Info"),   SMS_Class_ID   ("MICROSOFT|MicrosoftBDDInfo|1.0") ]

class Microsoft_BDD_Info : SMS_Class_Template {     [SMS_Report (TRUE), key ]            string InstanceKey;     [SMS_Report (TRUE)      ]            string DeploymentMethod;     [SMS_Report (TRUE)      ]            string DeploymentType;     [SMS_Report (TRUE)      ]            string DeploymentTimeStamp;     [SMS_Report (TRUE)      ]            string BuildID;     [SMS_Report (TRUE)      ]            string BuildName;     [SMS_Report (TRUE)      ]            string BuildVersion;     [SMS_Report (TRUE)      ]            string OSDPackageID;     [SMS_Report (TRUE)      ]            string OSDProgramName;     [SMS_Report (TRUE)      ]            string OSDAdvertisementID;

};

  1. To check the syntax of the file, open a Command Prompt window, and then type mofcomp.exe sms_def.mof -check.

  2. To compile the .mof file with the new entries on the server, open a Command Prompt window, and then type mofcomp.exe sms_def.mof.

  3. Use the command mofcomp.exe sms_def.mof to create a Systems Management Server 2003 package to push the updated .mof file to the Systems Management Server 2003 Advanced Client computers in the organization.

The Systems Management Server 2003 Advanced Client computers will need updated machine policies to know that they must inventory the new entries. Following policy updates, the next hardware inventories for the computers will be uploaded to the server for reporting.

Download

Get the Microsoft Deployment Solution Accelerator

Update Notifications

Sign up to learn about updates and new releases

Feedback

Send us your comments or suggestions