How to capture and report on a registry setting from SCCM clients

Hello,

I have  input the following settings into the configuration.mof:

#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("WindowsFirewall1", NOFAIL)
[DYNPROPS]
Class WindowsFirewall1
{
[key] string KeyName;
Uint32 DefaultOutboundAction;
Uint32 DefaultInboundAction;
Uint32 AllowLocalPolicyMerge;
Uint32 AllowLocalIPsecPolicyMerge;
Uint32 DisableNotifications;
Uint32 DisableUnicastResponsesToMulticastBroadcast;
Uint32 EnableFirewall;
};
[DYNPROPS]
Instance of WindowsFirewall1
{
keyname="SystemCenter.fr";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|DefaultOutboundAction"),Dynamic,Provider("RegPropProv")] DefaultOutboundAction;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|DefaultInboundAction"),Dynamic,Provider("RegPropProv")] DefaultInboundAction;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|AllowLocalPolicyMerge"),Dynamic,Provider("RegPropProv")] AllowLocalPolicyMerge;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|AllowLocalIPsecPolicyMerge"),Dynamic,Provider("RegPropProv")] AllowLocalIPsecPolicyMerge;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|DisableNotifications"),Dynamic,Provider("RegPropProv")] DisableNotifications;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|DisableUnicastResponsesToMulticastBroadcast"),Dynamic,Provider("RegPropProv")] DisableUnicastResponsesToMulticastBroadcast;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile|EnableFirewall"),Dynamic,Provider("RegPropProv")] EnableFirewall;
};

And I input the following setting into the sms_def.mof:

#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("WindowsFirewall1", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("WindowsFirewall1"),SMS_Class_ID("CUSTOM|WindowsFirewall1|1.0")]
Class WindowsFirewall1: SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] Uint32 DefaultOutboundAction;
[SMS_Report(TRUE)] Uint32 DefaultInboundAction;
[SMS_Report(TRUE)] Uint32 AllowLocalPolicyMerge;
[SMS_Report(TRUE)] Uint32 AllowLocalIPsecPolicyMerge;
[SMS_Report(TRUE)] Uint32 DisableNotifications;
[SMS_Report(TRUE)] Uint32 DisableUnicastResponsesToMulticastBroadcast;
[SMS_Report(TRUE)] Uint32 EnableFirewall;
};

Then I input this setting into a new query:

select SMS_R_System.Name, SMS_G_System_CUSTOM_WindowsFirewall1_1_0.Enable from  SMS_R_System inner join SMS_G_System_CUSTOM_WindowsFirewall1_1_0 on SMS_G_System_CUSTOM_WindowsFirewall1_1_0.ResourceId = SMS_R_System.ResourceId where SMS_G_System_CUSTOM_WindowsFirewall1_1_0.Enable = 1

I allowed for the Hardware Inventory to run, and I still get the following error:
[*The ConfigMgr Provider reported an error.*]

What I’m I missing that is keeping me from taking a query on this registry setting?
Hubble1Asked:
Who is Participating?
 
NJComputerNetworksConnect With a Mentor Commented:
Example:   http://scug.be/blogs/sccm/archive/2008/08/29/sccm-customizing-the-hardware-inventory-to-report-a-custom-registry-file.aspx

Instead of jumpting right into the query.. can you see the additional section in the Resource explorer?  You should make sure the data shows up here first... before attempting the query..
0
 
Hubble1Author Commented:
Yes, I had modified the wrong .mof files.  It works now.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.