Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBScript to traverse all Registry keys

Reply
 
Old 04-15-2009   #1 (permalink)
jam


 
 

VBScript to traverse all Registry keys

Hi All,

After trying a lot. I came here. I need to Traverse all (ALL) windows
registry key i need to get the registry key value that user needs.

By my exploration I found by using

strKeyPath = "SYSTEM\CurrentControlSet\Services"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

we can get the subkeys. but here I need to pass the path(strKeyPath).
whatever function to be used its working with a specific path.

I need to traverse all(HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG).

And one more thing is it possible?. If yes kindly help me...

Thanks,
Jam


My System SpecsSystem Spec
Old 04-15-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: VBScript to traverse all Registry keys


"jam" <ruby.watir@xxxxxx> wrote in message
news:e904a5b6-7d32-4b22-ace8-b14c09ff1090@xxxxxx
Quote:

> Hi All,
>
> After trying a lot. I came here. I need to Traverse all (ALL) windows
> registry key i need to get the registry key value that user needs.
>
> By my exploration I found by using
>
> strKeyPath = "SYSTEM\CurrentControlSet\Services"
> oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
>
> we can get the subkeys. but here I need to pass the path(strKeyPath).
> whatever function to be used its working with a specific path.
>
> I need to traverse all(HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
> HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG).
>
> And one more thing is it possible?. If yes kindly help me...
>
> Thanks,
> Jam
What are you actually trying to achieve in functional terms?


My System SpecsSystem Spec
Old 04-15-2009   #3 (permalink)
jam


 
 

Re: VBScript to traverse all Registry keys

On Apr 15, 4:43*pm, "Pegasus [MVP]" <n...@xxxxxx> wrote:
Quote:

> "jam" <ruby.wa...@xxxxxx> wrote in message
>
> news:e904a5b6-7d32-4b22-ace8-b14c09ff1090@xxxxxx
>
>
>
Quote:

> > Hi All,
>
Quote:

> > After trying a lot. I came here. I need toTraverseall (ALL) windows
> >registrykey i need to get theregistrykey value that user needs.
>
Quote:

> > By my exploration I found by using
>
Quote:

> > strKeyPath = "SYSTEM\CurrentControlSet\Services"
> > oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
>
Quote:

> > we can get the subkeys. but here I need to pass the path(strKeyPath).
> > whatever function to be used its working with a specific path.
>
Quote:

> > I need totraverseall(HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
> > HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG).
>
Quote:

> > And one more thing is it possible?. If yes kindly help me...
>
Quote:

> > Thanks,
> > Jam
>
> What are you actually trying to achieve in functional terms?
Hi Pegasus,

I need to traverse all(ALL) registry keys.

Thanks,
Jam
My System SpecsSystem Spec
Old 04-15-2009   #4 (permalink)
Pegasus [MVP]


 
 

Re: VBScript to traverse all Registry keys


"jam" <ruby.watir@xxxxxx> wrote in message
news:b5ce2f1f-e827-453f-a215-08dfc8391169@xxxxxx
On Apr 15, 4:43 pm, "Pegasus [MVP]" <n...@xxxxxx> wrote:
Quote:

> "jam" <ruby.wa...@xxxxxx> wrote in message
>
> news:e904a5b6-7d32-4b22-ace8-b14c09ff1090@xxxxxx
>
>
>
Quote:

> > Hi All,
>
Quote:

> > After trying a lot. I came here. I need toTraverseall (ALL) windows
> >registrykey i need to get theregistrykey value that user needs.
>
Quote:

> > By my exploration I found by using
>
Quote:

> > strKeyPath = "SYSTEM\CurrentControlSet\Services"
> > oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
>
Quote:

> > we can get the subkeys. but here I need to pass the path(strKeyPath).
> > whatever function to be used its working with a specific path.
>
Quote:

> > I need totraverseall(HKEY_CLASSES_ROOT, HKEY_CURRENT_USER,
> > HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG).
>
Quote:

> > And one more thing is it possible?. If yes kindly help me...
>
Quote:

> > Thanks,
> > Jam
>
> What are you actually trying to achieve in functional terms?
Hi Pegasus,

I need to traverse all(ALL) registry keys.

Thanks,
Jam

=====================

Sorry, I have a dense day today. Would you elaborate what you mean with
"traverse" and what outcome or output you expect?


My System SpecsSystem Spec
Old 04-15-2009   #5 (permalink)
mr_unreliable


 
 

Re: VBScript to traverse all Registry keys

jam wrote:
Quote:

> After trying a lot. I came here. I need to Traverse all (ALL) windows
> registry key i need to get the registry key value that user needs.
>
hi Jam,

I do registry searches all the time, and use a (heavily modified)
version of a script developed Bill James, called "Registry Search Tool"
and found here:

http://www.billsway.com/vbspage/

(near the bottom of the page).

The script will dump out the registry to a text file, and then
you can search the text for whatever you want. In addition,
the text file is really a "reg" file, and you can extract-and-
modify pieces of it, and then use regedit to enter your revisions
back into the registry.

The benefits of Bill James' script are that it will search much
faster than regedit, and the text is easier to work with than
the "raw" registry.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)

My System SpecsSystem Spec
Old 04-15-2009   #6 (permalink)
Todd Vargo


 
 

Re: VBScript to traverse all Registry keys

mr_unreliable wrote:
Quote:

> jam wrote:
Quote:

> > After trying a lot. I came here. I need to Traverse all (ALL) windows
> > registry key i need to get the registry key value that user needs.
> >
>
> hi Jam,
>
> I do registry searches all the time, and use a (heavily modified)
> version of a script developed Bill James, called "Registry Search Tool"
> and found here:
>
> http://www.billsway.com/vbspage/
>
> (near the bottom of the page).
>
> The script will dump out the registry to a text file, and then
> you can search the text for whatever you want. In addition,
> the text file is really a "reg" file, and you can extract-and-
> modify pieces of it, and then use regedit to enter your revisions
> back into the registry.
>
> The benefits of Bill James' script are that it will search much
> faster than regedit, and the text is easier to work with than
> the "raw" registry.
Very cool tool.

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
registry keys VB Script
VBScript to traverse all Registry keys VB Script
Re: How can I delete registry keys Vista installation & setup
What are these Registry Keys? Vista General
Mcafee Registry Keys or other VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46