RegKeyToMof - v2

Author Message
mcochrane

  • Total Posts : 1
  • Scores: 4
  • Reward points : 5140
  • Joined: 3/2/2009
  • Status: offline
RegKeyToMof - v2 Tuesday, July 06, 2010 8:52 AM (permalink)
5
Hi
 
Taking care of the nice feedback I got on the v1 (special mention to MofMaster and SteveRac), here is a second version of RegKeyToMof
 
-It now allows you to grab instances (given that the first subkey contains all keys you want)
-It seemlessly allows you to collect data from 64bits systems.
 
and... I changed the colors to something a little less ugly :-)
 
Feedback is welcome
 
Mark
Attachment(s)RegKeyToMOFv2.zip (27.99 KB) - downloaded 4965 times
 
#1
    jss1199

    • Total Posts : 29
    • Scores: 2
    • Reward points : 14150
    • Joined: 12/20/2007
    • Location: Houston, TX
    • Status: offline
    Re:RegKeyToMof - v2 Tuesday, July 06, 2010 11:53 AM (permalink)
    0
    Thanks for your contribution, Mark!

    Regards,
    Jeff Skelton
    FyrSoft - Main Siteand Blog
     
    #2
      skissinger

      • Total Posts : 4645
      • Scores: 448
      • Reward points : 75260
      • Joined: 9/13/2001
      • Location: Sherry Kissinger
      • Status: offline
      Re:RegKeyToMof - v2 Wednesday, December 01, 2010 12:31 PM (permalink)
      0
      RegkeyTomof has been updated to 2.6
      <message edited by skissinger on Monday, February 21, 2011 9:24 AM>
      mofmaster@myitforum.com
      My Blog
      Microsoft MVP - ConfigMgr
       
      #3
        Barker

        • Total Posts : 85
        • Scores: 30
        • Reward points : 15080
        • Joined: 8/26/2010
        • Location: St. Paul, MN
        • Status: offline
        Re:RegKeyToMof - v2 Tuesday, April 19, 2011 10:07 AM (permalink)
        0
        I had originally gotten very frustrated with RegkeyTomof because it never seemed to work for me. In the end it wasn't the tool, but the carpenter.

        I was trying to add reg keys that have a "-" in the value name. This is supported in the registry and SCCM can inventory it just fine. However, the following places don't support a "-".

        Configuration.mof
        Class myClass

        {

        [key] string KeyName;

        String xxx-xxx; (The hyphen needed to be changed to an underscore)

        };


        Thus in the below portion the text that is bold also needed to be changed from a hyphen to an underscore even though the registry entry (underlined) was able to continue to use the hyphen.
        {
        KeyName="RegKeyToMOF_32";
        [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Cusrom|xxx-xxx"),Dynamic,Provider("RegPropProv")] xxx-xxx;


        SMS_Def.mof also had to be modified
        Class myClass: SMS_Class_Template
        {
        [SMS_Report(TRUE),key] string KeyName;
        [SMS_Report(TRUE)] String xxx-xxx; (The hyphen had to be changed to an underscore here as well)


        Once I got past this issue I have come to fully appreciate the brilliance that this utility provides.  I hope this post helps save somebody else from a little unnecessary frustration.
        Keep an eye out for those nasty hyphens.




         
        #4
          admin

          • Total Posts : 462
          • Scores: 50
          • Reward points : 53840
          • Joined: 6/1/2002
          • Location: admin@myITforum.com
          • Status: offline
          Re:RegKeyToMof - v2 Tuesday, September 20, 2011 2:15 PM (permalink)
          0
          FYI: Giving this a home on the new myITforum 3.0 site:  http://myitforum.com/myitforumwp/groups/configmgr-downloads/documents/
           
          #5
            Online Bookmarks Sharing: Share/Bookmark

            Jump to:

            Current active users

            There are 0 members and 1 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-2012 ASPPlayground.NET Forum Version 3.9