Skip to content

Help with custom hardware inventory

Featured Replies

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?

 

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.