Using the Windows cmd command reg:
reg save
Saves a copy of specified subkeys, entries, and values of the registry in a specified file.
reg export
Creates a copy of specified subkeys, entries, and values into a file so that it can be transferred to other servers.
What's the difference between them, except the file being generated as .hiv or .reg?