How to display all registry values in hive?

Author Message
MadForMsi

  • Total Posts : 13
  • Scores: 0
  • Reward points : 0
  • Joined: 11/3/2010
  • Status: offline
How to display all registry values in hive? Tuesday, January 31, 2012 8:38 PM (permalink)
0
Hi,
I am trying to display values in registry hive but unfortunately getting error at UBound. Please guide.
Const HKEY_USERS = &H80000003
'On Error Resume Next
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Office\12.0\Excel\Option"
objRegistry.EnumValues HKEY_USERS, strKeyPath, arrValueNames, arrValueTypes
For i = 0 to UBound(arrValueNames)
strValueName = arrValueNames(i)
objRegistry.GetStringValue HKEY_USERS,strKeyPath,strValueName,strValue    
Wscript.Echo arrValueNames(i) & " -- " & strValue
Next
 
#1
    59cobalt

    • Total Posts : 973
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: online
    Re:How to display all registry values in hive? Wednesday, February 01, 2012 6:38 AM (permalink)
    0
    There is no subkey "Software\Microsoft\Office\12.0\Excel\Option" under HKEY_USERS. You mean to look under HKEY_CURRENT_USER, which is represented by the value &h80000001.
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9