Forrest logo
back to the reg tool

reg-save:tldr:6c523

reg-save: Save a registry key, its sub keys and values to a specific file.
$ reg save ${key_name} ${path\to\file}
try on your machine

The command "reg save ${key_name} ${path\to\file}" is used to export a key and its subkeys from the Windows Registry to a file.

Here's a breakdown of the command:

  • "reg save" is the command to save a registry key.
  • "${key_name}" is the name or path of the registry key to export. Replace "${key_name}" with the actual name or path of the key you want to save.
  • "${path\to\file}" is the path and filename where the exported registry data will be saved. Replace "${path\to\file}" with the actual path and filename you want to use for the exported file.

For example, if you want to save the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft" key to a file named "registry_backup.reg" on your desktop, the command would be:

reg save HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft C:\Users\YourUsername\Desktop\registry_backup.reg

This command will create a file with the name "registry_backup.reg" at the specified location, containing the exported data of the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft" key.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the reg tool