in reply to Reading and writing Windows Registry via system.dat

I'm looking for a library for Perl that could read/

No you're not :)

You're looking for Parse::Win32Registry#ACKNOWLEDGEMENTS

Use it to parse/extract stuff you want, use something to generate .reg files, and then shell out to chntpw+ntreg and import the .reg file

Hey, that them there is new search terms

Bingo

hivex - Windows Registry "hive" extraction library

hivexregedit - Merge and export Registry changes from regedit-format files.

$ grep "use Win" hivex-1.3.2\regedit\hivexregedit use Win::Hivex; use Win::Hivex::Regedit qw(reg_import reg_export);