Registry

D

Dylan

Hi would anybody be able to help point me in the direction of a script, that
will search the registry for instances of a certain key and if they exist
modify the value.

Many thanks, Dylan.
 
G

Gerry

Dylan

Regedit has the capability to find. You can use Export to export the key
for modification and then merge the amended key back into Registry. You
must backup the Registry before attempting any modifications.

Modifying the registry has risks! Why do you think it needs to be done?

--


Hope this helps.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~
 
D

Dylan

Thanks Gerry. Basically we have an app installed on about 200 machines, which
we need to modify a key for but the app seems to put the key in different
locations on each machine. If I could get a script to make the changes then I
could push it out via sccm only to machines with the app installed.

Cheers, Dylan.
 
A

Andrew McLaren

Hi Dylan,

I don't have a script handy, but ... you can probably use XP's built-in
REG.EXE command; either in a batch file, or called from a WSH Script.

Do a "REG QUERY /?" to get the Query (ie, search) syntax - the /s parameter
lets you walk down a branch of the Hive, looking for specific values.

If you google for "'reg query' and script" you'll probably find some
examples.

Hope it helps a bit,

Andrew
 
T

Terry R.

The date and time was Wednesday, May 27, 2009 4:13:02 AM, and on a whim,
Dylan pounded out on the keyboard:
Thanks Gerry. Basically we have an app installed on about 200 machines, which
we need to modify a key for but the app seems to put the key in different
locations on each machine. If I could get a script to make the changes then I
could push it out via sccm only to machines with the app installed.

Cheers, Dylan.

Hi Dylan,

I don't see how the app puts the key(s) in different locations.
Regardless, if that's the case, using a reg file to merge into all the
machines via a script won't work.


Terry R.
 
J

Johnw

It happens that Dylan formulated :
Hi would anybody be able to help point me in the direction of a script, that
will search the registry for instances of a certain key and if they exist
modify the value.

Maybe this.

SubInACL (SubInACL.exe)
http://www.microsoft.com/downloads/...56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en
Or,
http://qdeo.com/nd2

Solving setup errors by using the SubInACL tool to repair file and
registry permissions
http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top