All Forums >> [Scripting] >> WSH & Client Side VBScript >> reading registry key string values in to an array Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I have a registry key called "packages" - HKLM\SOFTWARE\MYDOMAIN\PACKAGES this key contains string values with value names such as "Package_252" or "Package_217" there may be none of these string values or there may be quite a few.
I would like to be able to retrieve these value names in order to tell which workstations have which packages (if any) I have checked out a few googles but they all seem to be about retrieving info about a 'known' string value.
A point in the right direction would be appreciated.
I was getting an error though C:\Program Files\SAPIEN\PrimalScript Professional\Untitled1.vbs(38, 8) WshShell.RegRead: Invalid root in registry key "HKLM\SOFTWARE\ICL\Libra\Packages\PKG_0000178_A1"
i removed this: oWSH.RegRead("HKLM\" & strKeyPath & "\" & arrNames(i)) from this line WScript.Echo arrNames(i) oWSH.RegRead("HKLM\" & strKeyPath & "\" & arrNames(i))
as it appeared to be qyerying the actual string value name (that's the best way i can explain it, forgive me.)
any way, now it spits out the string value names perfect !!