myITforum and Windows IT Pro Forums

 New custom mof not working on half of the computers

Author Message
snooper

  • Total Posts : 3
  • Scores: 0
  • Reward points : 7470
  • Joined: 12/31/2011
  • Status: offline
New custom mof not working on half of the computers Monday, December 16, 2013 8:33 PM (permalink)
0
Hello!   Hopefully someone can help me with this one.  3 days ago I created a custom mof with RegKeytoMof 3.1.   I've used this before and have never had an issue.  However, this latest mof add doesn't seem to work on around 1000 computers.   I can't quite figure out what is wrong.  
 
They're all either Windows 7/Windows 8 and all 64bit.   No consistency I can see with the ones not working.  The entries are in the registry and show in wmi.   However, the inventoryagent doesn't show it scanning for this. 
 
I've tried a full inventory sync and a install (with uninstall checked).   Still same results. 
I am on SCCM 2012 R2
 
Here is the mof entries.   Thanks for the help!!!
 
// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund)
// this section tells the inventory agent what to collect
// 12/13/2013 6:55:36 PM
#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("InternetExplorer", NOFAIL)
[DYNPROPS]
Class InternetExplorer
{
[key] string KeyName;
String MkEnabled;
String Version;
String Build;
String W2kVersion;
Uint32 IntegratedBrowser;
String svcKBFWLink;
String svcVersion;
String svcUpdateVersion;
String svcKBNumber;
};
[DYNPROPS]
Instance of InternetExplorer
{
KeyName="RegKeyToMOF_32";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|MkEnabled"),Dynamic,Provider("RegPropProv")] MkEnabled;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Build"),Dynamic,Provider("RegPropProv")] Build;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|W2kVersion"),Dynamic,Provider("RegPropProv")] W2kVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|IntegratedBrowser"),Dynamic,Provider("RegPropProv")] IntegratedBrowser;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBFWLink"),Dynamic,Provider("RegPropProv")] svcKBFWLink;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcVersion"),Dynamic,Provider("RegPropProv")] svcVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcUpdateVersion"),Dynamic,Provider("RegPropProv")] svcUpdateVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBNumber"),Dynamic,Provider("RegPropProv")] svcKBNumber;
};
#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("InternetExplorer_64", NOFAIL)
[DYNPROPS]
Class InternetExplorer_64
{
[key] string KeyName;
String MkEnabled;
String Version;
String Build;
String W2kVersion;
Uint32 IntegratedBrowser;
String svcKBFWLink;
String svcVersion;
String svcUpdateVersion;
String svcKBNumber;
};
[DYNPROPS]
Instance of InternetExplorer_64
{
KeyName="RegKeyToMOF_64";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|MkEnabled"),Dynamic,Provider("RegPropProv")] MkEnabled;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Build"),Dynamic,Provider("RegPropProv")] Build;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|W2kVersion"),Dynamic,Provider("RegPropProv")] W2kVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|IntegratedBrowser"),Dynamic,Provider("RegPropProv")] IntegratedBrowser;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBFWLink"),Dynamic,Provider("RegPropProv")] svcKBFWLink;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcVersion"),Dynamic,Provider("RegPropProv")] svcVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcUpdateVersion"),Dynamic,Provider("RegPropProv")] svcUpdateVersion;
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBNumber"),Dynamic,Provider("RegPropProv")] svcKBNumber;
};
 
// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund)
// this section tells the inventory agent what to report to the server
// 12/13/2013 6:55:36 PM
#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("InternetExplorer", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("InternetExplorer"),SMS_Class_ID("InternetExplorer"),
SMS_Context_1("__ProviderArchitecture=32|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class InternetExplorer: SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(FALSE)] String MkEnabled;
[SMS_Report(TRUE)] String Version;
[SMS_Report(FALSE)] String Build;
[SMS_Report(FALSE)] String W2kVersion;
[SMS_Report(FALSE)] Uint32 IntegratedBrowser;
[SMS_Report(FALSE)] String svcKBFWLink;
[SMS_Report(TRUE)] String svcVersion;
[SMS_Report(FALSE)] String svcUpdateVersion;
[SMS_Report(FALSE)] String svcKBNumber;
};
#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("InternetExplorer_64", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("InternetExplorer64"),SMS_Class_ID("InternetExplorer64"),
SMS_Context_1("__ProviderArchitecture=64|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class InternetExplorer_64 : SMS_Class_Template
{
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(FALSE)] String MkEnabled;
[SMS_Report(TRUE)] String Version;
[SMS_Report(FALSE)] String Build;
[SMS_Report(FALSE)] String W2kVersion;
[SMS_Report(FALSE)] Uint32 IntegratedBrowser;
[SMS_Report(FALSE)] String svcKBFWLink;
[SMS_Report(TRUE)] String svcVersion;
[SMS_Report(FALSE)] String svcUpdateVersion;
[SMS_Report(FALSE)] String svcKBNumber;
};
<message edited by snooper on Monday, December 16, 2013 8:35 PM>
 
#1
    snooper

    • Total Posts : 3
    • Scores: 0
    • Reward points : 7470
    • Joined: 12/31/2011
    • Status: offline
    Re:New custom mof not working on half of the computers Monday, December 16, 2013 9:21 PM (permalink)
    0
    accidently double posted
    <message edited by snooper on Tuesday, December 17, 2013 8:37 AM>
     
    #2
      snooper

      • Total Posts : 3
      • Scores: 0
      • Reward points : 7470
      • Joined: 12/31/2011
      • Status: offline
      Re:New custom mof not working on half of the computers Tuesday, December 17, 2013 10:34 AM (permalink)
      0
      This appears to be resolved... I think something got corrupted on my custom client settings after the mof import.   I deleted it and recreated a new client settings for our pcs.  I then re-enabled the hardware inventory for these 2 mof entries.   I updated the policy and then did another hardware inventory cycle.  I now see the entry in the log and in resource explorer.
       
      #3
        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 2 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2014 ASPPlayground.NET Forum Version 3.9