reg save

Save a registry key, its subkeys and values to a native .hiv file. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/reg-save.

reg save {{key_name}} {{path\to\file.hiv}}

reg save {{key_name}} {{path\to\file.hiv}} /y