RegSaveKey

Save Registry Key to File

Related Topics Link IconRelated Topics

Definition

Use this command to save all registry keys including all subkeys and values in a file.

If an error occurs while running the command, the script stops. If you want to continue the script if there is an error, enable the setting Continue script despite error in the Script Editor.
 

Settings

Input

  • Registry key to be saved
    Enter the key you want to save. You may also use one of the following predefined values:
    HKEY_CLASSES_ROOT
    (HKEY_CURRENT_USER)
    HKEY_LOCAL_MACHINE
    HKEY_USERS
  • Name of file to be saved
    Enter the name of the file you want to save the registry information to.

    If you want to save the file in a FAT file system using the RegLoadKey command, the file cannot have a file extension.