Scanning through Windows registry...

Unknown Hero unknown_hero007 at hotmail.com
Tue May 6 03:48:00 EDT 2008


Hi everyone!

Well, I have this need for a Python script that will scan through a
selected hive (like HKEY_LOCAL_MACHINE) and replace all strings that
contain word xxx (IE. foo) with yyy (IE. moo). I do not want partial
results, but rather complete strings (no foome or the like, just foo).


I have a basic understanding of Python, but this is beyond my skills.

I was looking for something like this:

open key (HKEY_LOCAL_MACHINE)
while (not end of list)
  open next subkey
  search subkey for value (old)
  SetValue(key, subkey, REG_SZ, new)
  close subkey
end while
close key



More information about the Python-list mailing list