Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to export a registry entry to file

📅 2018-Mar-26 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ nirsoft, registry ⬩ 📚 Archive

The reg program can be used to operate on the Windows registry from the command-line. Exporting registry entries is one of the tasks it can perform. Exporting registry entries is useful to save settings to a file and restoring or importing those settings on a different computer.

To export a registry entry, provide its registry path and an output filename. For example, to export the settings of the PuTTY program I used this invocation:

reg export HKEY_CURRENT_USER\Software\SimonTatham\PuTTY putty.reg

This exported the entries to the putty.reg registry entry file.

There is also a program from NirSoft called RegFileExport that offers to do this job. But I found that it did not work for me. It probably only works on offline registry hives.

Tried with: Windows 10

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧