reg-export
Export the specified subkeys and values to a .reg file. tldr-pages
On Windows
Windows
Export all subkeys and values of a specific key
reg export key_name path\to\file.regIdentifyForcefully (assuming yes) overwrite of an existing file
reg export key_name path\to\file.reg /yIdentify/yOverwrites any existing file with the name *filename* without prompting for confirmation. Windows commands reference