Copy keys and their values in the registry. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/reg-copy.
reg copy old_key_name new_key_name
reg copy old_key_name new_key_name /s
reg copy old_key_name new_key_name /f