Key subkey Information

(imported topic written by lunchboxfl91)

I have a key in the registry that I am lookingo for in the registry. When that key is found it has a subkey that is basically its version. So I would want to return the value 10.3.21 below. Not the keys in the Dimension area but the actual subkey. I hope that makes sense. Thanks for any help.

-Dimensions

-10.3.21

(imported comment written by SystemAdmin)

If I’m reading this correct, you have a key called “Dimensions”, which has at least 1 subkey whose name is a version number.

If you have other subkeys or not, one way would be to try to cast each subkey as a version number. You’ll only get back the ones that are version numbers.

names of keys whose (exists name of it as version) of key “HKEY_LOCAL_MACHINE\Software\Dimensions” of registry

or

(names of it as version) of keys of key “HKEY_LOCAL_MACHINE\Software\Dimensions” of registry

Paul

(imported comment written by SystemAdmin)

I am not entirely sure what you want to return. Talking about registry is a pain, because its hard to come up with the right terms to refer to everything.

If I understand correctly, you have a specific key, which has a value “version” (or something similar), and you want to return the data associated with that value?

The BigFix client has a similar registry structure, and you can get at the information with this relevance expression:

value "version" of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BigFix\EnterpriseClient"  of registry

-Zak

(imported comment written by SystemAdmin)

Hopefully one of us has what he’s looking for :slight_smile:

Paul

(imported comment written by lunchboxfl91)

I want to return the value as you can see in the image 10.3.1 because in each install this subkey will be different like 9.4.1 or something like that.

(imported comment written by SystemAdmin)

When you say value, you really mean the name of the key below “Dimensions”. Use the relevance I gave above, but change my path to the “Dimensions” folder. I was only guessing what it was. For instance, perhaps it’s really “HKEY_LOCAL_MACHINE\Software\Serena\Dimensions” ??

For instance…

names of keys whose (exists name of it as version) of key “HKEY_LOCAL_MACHINE\Software\Serena\Dimensions” of registry

Now, if there can only be 1 key under “Dimensions” (as in your GIF), you could simplify it to just get the name and forget testing if it’s a version number. Such as…

name of key of key “HKEY_LOCAL_MACHINE\Software\Serena\Dimensions” of registry

Paul

(imported comment written by lunchboxfl91)

That did it. Thanks for all the help.