Export the specified sub keys and values into a file. More information: https://docs.microsoft.com/windows-server/administration/windows-commands/reg-export.
reg export {{key_name}} {{path/to/file.reg}}
reg export {{key_name}} {{path/to/file.reg}} /y