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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NJComputerNetworksCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hubble1Author Commented:
Yes, I had modified the wrong .mof files.  It works now.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.