reg copy
Copies a registry entry to a specified location on the local or remote computer. Windows commands reference
On Windows
Windows
reg copy <keyname1> <keyname2> [/s] [/f]reg copy HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp /sreg copy \\ZODIAC\HKLM\Software\MyCo HKLM\Software\MyCo1
<keyname1>Specifies the full path of the subkey or entry to be added. To specify a remote computer, include the computer name (in the format \<computername>\) as part of the keyname. Omitting \<computername>\ causes the operation to default to the local computer. The keyname must include a valid root key. Valid root keys for the local computer are: HKLM, HKCU, HKCR, HKU, and HKCC. If a remote computer is specified, valid root keys are: HKLM and HKU. If the registry key name contains a space, enclose the key name in quotes.<keyname2>Specifies the full path of the second subkey to be compared. To specify a remote computer, include the computer name (in the format \<computername>\) as part of the keyname. Omitting \<computername>\ causes the operation to default to the local computer. The keyname must include a valid root key. Valid root keys for the local computer are: HKLM, HKCU, HKCR, HKU, and HKCC. If a remote computer is specified, valid root keys are: HKLM and HKU. If the registry key name contains a space, enclose the key name in quotes./sCopies all subkeys and entries under the specified subkey./fCopies the subkey without prompting for confirmation./?Displays help at the command prompt.