Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

1 Answer 1

up vote 5 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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