RegFileExport Helps you Export Data from Offline Registry Hives

RegFileExport is an useful console application from NirSoft, which helps you extract data from offline Registry hives that are not currently in use by the Operating System. RegFileExport reads the registry hive and then exports the specified branch or the entire branch to a .REG file.

Regedit.exe can do this too … what’s the difference?

We know that the Registry Editor in Windows lets you load a registry hive via the File menu – "Load Hive…" command, and extract data offline from the registry hive. The advantage of RegFileExport over Regedit.exe is that RegFileExport can export data quickly using a single command-line, without needing to load the hive, export the branch, update the paths in the REG file using a text editor, and unload the hive manually… which you would otherwise do if you use Regedit.exe or Reg.exe.

Another advantage as mentioned in the documentation is that the RegFileExport tool may also be able to extract keys and values from the Registry file even if the Registry file is corrupted and cannot be loaded by Windows.

RegFileExport Command-line Syntax

RegFileExport [Registry File] [Destination .Reg File] {Registry Key}

{Registry Key} is optional, if the key is specified, only this key and all its subkeys will be exported into the .reg file. Otherwise, the entire file will be exported. if [Destination .Reg File] is an empty string ("") the Registry data will be sent to the standard output.



Let’s say if you have a corrupted user profile from which you want to extract certain registry keys (for example.. registry branch that stores the list of IE Extensions) so that you can apply the setting to your current profile. You use this command:

regfileexport "C:\Users\Jim\ntuser.dat" ieext.reg "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Extensions"

And you now have the IE Extensions branch in a REG file.

Download RegFileExport. This utility runs in Windows 2000 and higher (up to Windows 7/2008.)


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

Leave a Comment