Jump to content


Recommended Posts

Hi all,

 

I have a bit of a curly one. I want to pull in some custom registry info, but I'm a bit stumped. There are plenty of great guides floating around on how to get registry information via editing configuration.mof and sms_def.mof. The problem I have is that every single example I can find so far is for a staticly named value.

 

For instance from the guide at http://blog.coretech.dk/kea/how-to-get-registry-information-into-hardware-inventory/

 

 


#pragma deleteclass("IE", NOFAIL) 
[DYNPROPS] 
Class IE 
{ 
[key] string KeyName; 
String Version; 
}; 
[DYNPROPS] 
Instance of IE 
{ 
keyname="IE.version"; 
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version;
}
 

Now this assumes that information is in a value called "Version", in my case I need to get the name of the value, where the actual value name (not just it's contents) is

dynamic. Can someone point in the right direction? Is this even possible?

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...