Hello,
Calling all MOF experts!! I have spent hours attempting to pull back some registry information. Does anyone see anything wrong with this information that I modified in my site servers MOFs. I can't get the data to appear in the Resource Explorer. The MOFCOMP.exe revealed no errors.
sms_def.mof
#pragma namespace("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("TerminalServerMode", NOFAIL)
[SMS_Report(TRUE),
SMS_Group_Name("RegScan Terminal Server Key"),
SMS_Class_ID("CUSTOM|TerminalServerMode|1.0")]
Class TerminalServerMode : SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] Uint32 TSAppCompat;
};
configuration.mof
#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("TerminalServerMode",NOFAIL)
[DYNPROPS]
Class TerminalServerMode
{
[key] string KeyName;
Uint32 TSAppCompat;
};
[DYNPROPS]
instance of TerminalServerMode
{
KeyName = "TerminalServerMode";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server|TSAppCompat"),
Dynamic, Provider("RegPropProv")] TSAppCompat;
};