locked
sms_def.mof RRS feed

  • Question

  • Could ony explain me when does this sms_def.mof file will be created.
    Gopikrishnan.J
    Wednesday, November 23, 2011 9:59 PM

Answers

  • sms_def.mof is a default file created at installation time. It contains information about all the data collected for hardware inventory and is extensible.
    Jason | http://myitforum.com/myitforumwp/members/jasonsandys/ | Twitter @JasonSandys
    Wednesday, November 23, 2011 11:25 PM

All replies

  • sms_def.mof is a default file created at installation time. It contains information about all the data collected for hardware inventory and is extensible.
    Jason | http://myitforum.com/myitforumwp/members/jasonsandys/ | Twitter @JasonSandys
    Wednesday, November 23, 2011 11:25 PM
  • look at What is a sms_def.mof and why do I care? http://www.myitforum.com/articles/1/view.asp?id=8629 and

    sccm inventory explaining about MOF files http://www.myitforum.com/myitwiki/SCCMINV.ashx

     


    //Eswar Koneti @ www.eskonr.com
    Thursday, November 24, 2011 6:54 AM
  •  This is one example:

    sms_def_mof

    #pragma namespace (\\\\.\\root\\cimv2\\SMS)
    #pragma deleteclass("Nombre", NOFAIL)
    [SMS_Report(TRUE),SMS_Group_Name("Nombre"),SMS_Class_ID("Custom|Nombre|1.0")]
    Class Nombre: SMS_Class_Template
    {
    [SMS_Report(TRUE),key] string Nombre;
    [SMS_Report(TRUE)] String Tipo;
    [SMS_Report(TRUE)] String Datos;
    };

    configuration.mof

    #pragma namespace ("\\\\.\\root\\cimv2")
    #pragma deleteclass("Inventario", NOFAIL)
    [DYNPROPS]
    class Inventario
    {
         [key]string  Keyname;
         string       NumeroPC;
         string       VersionMaqueta;
    };
    [DYNPROPS]
    instance of Inventario
    {
         KeyName="Inventario";
         [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Inventario|NumeroPC"),
              Dynamic, Provider("RegPropProv")] NumeroPC;
         [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Inventario|VersionMaqueta"),
              Dynamic, Provider("RegPropProv")] VersionMaqueta;
    };

    (Modify your parameters : Regedit values ...etcS )

    Regards


    MCITP
    Thursday, November 24, 2011 7:54 AM