Export Registry Key with a CMD Script

CMP PROMPT>reg.exe export /?

REG EXPORT KeyName FileName [/y]

Keyname    ROOTKEY[\SubKey] (local machine only).
ROOTKEY  [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey   The full name of a registry key under the selected ROOTKEY.

FileName   The name of the disk file to export.

/y       Force overwriting the existing file without prompt.

Examples:

REG EXPORT HKLM\Software\MyCo\MyApp File01.reg
Exports all subkeys and values of the key MyApp to the file File01.reg

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s