How can registry subkeys under a key be enumerated with vbscript ?

Posted on 2006-05-22
Last Modified: 2010-04-17
please help.
Question by:itbabe
    LVL 65

    Expert Comment

    This example here shows how to read the list of installed programs

    That in the registry is one key with lots of subkeys

    LVL 65

    Accepted Solution

    think this snippet of code will do also

    SCRIPT language= "vbscript" runat="server">

        Set RegEdit = CreateObject("RegEdit.Server")
        For Each Key In RegEdit.Keys("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall").SubKeys
            If Key.ExistsValue("DisplayName") Then
              Response.write Key.Values("DisplayName").Value
              Response.write Key.Name
            End If



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Title # Comments Views Activity
    why to use string 10 53
    improve Shell script 5 115
    WMI, model #, retrieving information 10 50
    word0 challenge 4 34
    RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now