REG EXPORT KeyName FileName /y Keyname ROOTKEY[\SubKey (local machine only). ROOTKEY HKLM | HKCU | HKCR | HKU | HKCC SubKey ...

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 AppBkUp.reg     Exports all subkeys and values of the key MyApp to the file AppBkUp.reg