Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

search replace in registry via command line

I need a command line utility that will search the registy for a value and then change the data for the value.

example:

Search registry for LVCAM_Mirror_Y which is set to 0 and I want to set it to 1,  where ever that particular value is in the registry I want to set the value to 1.


I do not want to have to know where it is I just want to do a search/replace.

Thanks!

Randy
0
rjohnsonjr
Asked:
rjohnsonjr
  • 2
1 Solution
 
LongbowCommented:
http://articulate-pr.com/RegSearch/REGSRCH.HTM
http://www.funduc.com/registry_toolkit.htm
http://bladesdev.com/regreplace.htm
http://4developers.com/regc/

You can also type reg.exe /? in a dos box.
This tool can help you but you need to know where your data is stored.
0
 
TheDefiantCommented:
There's a utility provided on the Windows 2000 Resource Kit CD, and maybe even available for download from the Windows 2000 Resource Kit website, that you can use for searching the Registry to display any matching keys or values.
0
 
TheDefiantCommented:
Forgot to mention...

Once found, you could use the FIND command (internal command of CMD) to find lines matching what you're looking for.  At this time, I'm not certain if the registry search tool from the ResKit CD has output options to make it easy to use a batch file, or similar, to generate an appropriate Registry file to make the change.

If you need to delete a specific key in the Registry, prepend the name with a minus (-), ie:
[-HKEY_LOCAL_MACHINE\SOFTWARE\MyApp\Some_Other_Key]

Or for values:
[HKEY_LOCAL_MACHINE\SOFTWARE\MyApp\Some_Other_Key]
-"ValueToRemove"
0
 
rjohnsonjrAuthor Commented:
Thanks I will get these tested today or monday and let you know how it goes.  Thank  you for being so thorough :-)

Randy
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now