Regfind

Mike

Splendid
Apr 1, 2004
3,865
0
22,780
Archived from groups: microsoft.public.windowsnt.misc (More info?)

I am trying to replace all instance of a certain string in the
registry. Microsoft's REGFIND utility will search and replace values,
but when I try to use the -n and -r flags to replace key and value
names, I get an error message "May not specify -n with -r". How do I
update the key names and values? Thanks in advance.
 
Archived from groups: microsoft.public.windowsnt.misc (More info?)

Regfind can only be used to replace the data contained in a value, not
values or keys themselves.

For example:
regfind -p \Registry\Machine "find this" -r "replace with this"

Will find all string values that contain the data "find this" and replace
them with "replace with this"

If you want to actually change the value and key names, it would take a more
powerful tool or script.
You might try creating a VBScript using the StdRegProv class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/stdregprov.asp
Or maybe the command-line utility: REG.EXE

--

Thanks,
Mike

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Please do not send e-mail directly to this alias.
This alias is for newsgroup purposes only.


"Mike" <mike@mikeshore.com> wrote in message
news:d3354680.0410270849.2a7223b7@posting.google.com...
>I am trying to replace all instance of a certain string in the
> registry. Microsoft's REGFIND utility will search and replace values,
> but when I try to use the -n and -r flags to replace key and value
> names, I get an error message "May not specify -n with -r". How do I
> update the key names and values? Thanks in advance.