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?

link|improve this question
feedback

migrated from stackoverflow.com Aug 31 '11 at 8:28

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

The generated file is the difference.

save saves the branch into the Registry's native "hive" format. This preserves key ownership and ACLs, so is best suited for backups and restoring on the same machine.

export exports it into a textual format, suitable for distribution since the .reg format does not preserve any metadata.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.