This tool enables you to add, change, delete, search, save, restore, and perform other operations on registry entries from the command prompt or a batch file. It can be used on both local and remote computers.
The version of Reg.exe that is included in the Support Tools has been substantially updated. If you are using Reg.exe commands in existing batch files, be sure to check the syntax in your batch file against the new usage.
Caution:
Reg.exe supports the following commands:
Adds a new registry entry in the specified key.
| REG ADD syntax | REG ADD examples |
Compares a registry entry with another registry entry on the current or remote computer.
| REG COMPARE syntax | REG COMPARE examples |
Copies a registry entry to a new location in the registry of the current or remote computer.
| REG COPY syntax | REG COPY examples |
Deletes a registry entry, subkey, or keys.
| REG DELETE syntax | REG DELETE examples |
Exports a registry entry to a file.
| REG EXPORT syntax | REG EXPORT examples |
Imports a registry entry from a file.
| REG IMPORT syntax | REG IMPORT examples |
Temporarily loads a specified key or hive from a REG SAVE file into the root of the registry. It is used, for example, for purposes of viewing, troubleshooting, or editing the registry entries of a computer that is not configured properly or is not connected to the network.
| REG LOAD syntax | REG LOAD examples |
Returns information about the current entry or entries under a specified registry subkey, key or hive.
| REG QUERY syntax | REG QUERY examples |
Restores a specified registry entry, subkey, key, or hive from a file created by REG SAVE.
| REG RESTORE syntax | REG RESTORE examples |
Copies a specified registry entry, subkey, key, or hive, to a specified file. Useful for backing up portions of the registry prior to making changes.
| REG SAVE syntax | REG SAVE examples |
Removes a specified key or hive that has previously been loaded using REG LOAD.
| REG UNLOAD syntax | REG UNLOAD examples |