SystemCenter

SCCM MOF

커널64 2010. 3. 10. 15:20

CONFIGURATION.MOF

#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("SCPGC", NOFAIL)

[DYNPROPS]
class SCPGC
{
[key]
string KeyName;
string Line;
string Process;
string DetailedProcess;
};
[DYNPROPS]
instance of SCPGC
{
KeyName="SCPG Process";
[PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\SCPG|Process1"),Dynamic,Provider("RegPropProv")]Line;
[PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\SCPG|Process2"),Dynamic,Provider("RegPropProv")]Process;
[PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\SCPG|Process3"),Dynamic,Provider("RegPropProv")]DetailedProcess;
};


SMS_DEF.MOF

#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("SCPGC", NOFAIL)
[
SMS_Report(TRUE),
SMS_Group_Name("SCPG Process Info"),
SMS_Class_ID("SCPGC|Process|1.0")]

Class SCPGC : SMS_Class_Template
{
[SMS_Report(TRUE),key]
string KeyName;
[SMS_Report(TRUE)]
String Line;
[SMS_Report(TRUE)]
String Process;
[SMS_Report(TRUE)]
String DetailedProcess;
};