Windows Vista Forums

how to fins a Reg key when you only know a value that sits under i
  1. #1


    GazzaJagman Guest

    how to fins a Reg key when you only know a value that sits under i

    Can anyone help me with this?
    I am trying to find a unique reg key but I don't know what the key is. I can
    identify it by a Value name and Value Data.



    HKLM/System/CurrentControlSet/Control/Class/{Big long Guid}/XYZ
    The String Value name is "VlanName" and it's value is "Main"

    I need to find out the {big long GUID}/XYZ part of the Registry key.

    Any ideas or thoughts how i can do this would be greatly appreciated?


    --
    "Science is what we hope for...Technology is what we get stuck with"

      My System SpecsSystem Spec

  2. #2


    mayayana Guest

    Re: how to fins a Reg key when you only know a value that sits under i

    Without using extra components, VBS has two ways
    available to access the Registry. WScript.Shell can do
    simple operations but can't enumerate Registry keys
    or values. WMI can enumerate with the StdRegProv
    object, but it's a clunky, poorly designed tool. (Even
    the name "StdRegProv" is a name that only a geek
    could love.

    If you're interested you can take a look at this class:
    www.jsware.net/jsware/scripts.php5#wmirclas

    It encapsulates the WMI Registry mess into a VBS class
    and translates it into easy public functions like EnumKeys,
    EnumValues, etc.

    > Can anyone help me with this?
    > I am trying to find a unique reg key but I don't know what the key is. I
    can

    > identify it by a Value name and Value Data.
    >
    > HKLM/System/CurrentControlSet/Control/Class/{Big long Guid}/XYZ
    > The String Value name is "VlanName" and it's value is "Main"
    >
    > I need to find out the {big long GUID}/XYZ part of the Registry key.
    >
    In Registry parlance, the name is called a value and
    the content is called the "data". It's confusing because
    they used the INI format but messed it up. In INI files
    there are sections, which hold key=value pairs. In the
    Registry they used the same terms but switched their
    positions. There are keys, which hold value/data pairs.

    What you need to do is to enumerate the parent key.
    It sounds like you're looking for the CLSID key, so you'll
    need to enumerate all keys under the Class key. Then with
    each of those you'll have to check for the key\value
    XYZ\VlanName. When you get that without error you'll
    have found your CLSID (GUID) key.

    > Any ideas or thoughts how i can do this would be greatly appreciated?
    >
    >
    > --
    > "Science is what we hope for...Technology is what we get stuck with"


      My System SpecsSystem Spec

  3. #3


    urkec Guest

    Re: how to fins a Reg key when you only know a value that sits und

    "mayayana" wrote:

    > Even the name "StdRegProv" is a name that only a geek
    > could love.

    True. I love the name.

    --
    urke

      My System SpecsSystem Spec

how to fins a Reg key when you only know a value that sits under i problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Devices & Printers just sits there Paul H Vista General 2 18 Jan 2010
poor quality pictures on web sits mills Vista performance & maintenance 5 22 Jun 2008
DVD Maker Sits at 0% for hours - Decoding GW Vista music pictures video 8 20 Apr 2008
Seeking magnifier that sits on the taskbar. b11_ Vista General 4 10 Nov 2007
Movie maker just sits while publishing; not frozen Please Help eheinze88 Vista music pictures video 1 28 Jun 2007