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

please help.
itbabeAsked:
Who is Participating?
 
rockiroadsCommented:
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
        Else
          Response.write Key.Name
        End If
    Next

  </SCRIPT>

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

That in the registry is one key with lots of subkeys

http://www.computerperformance.co.uk/ezine/ezine63.htm

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.