C:\WINDOWS>REG COPY /?
Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved
REG COPY KeyName1 KeyName2
[/s
] [/f
] KeyName
[\\Machine\
]FullKey
Machine Name of remote machine - omitting defaults to the current machine
Only HKLM and HKU are available on remote machines
FullKey ROOTKEY\SubKey
ROOTKEY
[ HKLM | HKCU | HKCR | HKU | HKCC
] SubKey The full name of a registry key under the selected ROOTKEY
/s Copies all subkeys and values
/f Forces the copy without propmt
Examples:
REG COPY HKLM\Software\MyCo\MyApp HKLM\Software\MyCo\SaveMyApp /s
Copies all subkeys and values under the key MyApp to the key SaveMyApp
REG COPY \\ZODIAC\HKLM\Software\MyCo HKLM\Software\MyCo1
Copies all values under the key MyCo on ZODIAC to the key MyCo1
on the current machine
EXAMPLE
Add BINARY to
D:\SoftwareOK>REG ADD HKCU\Software\TestFolder /v TestVal /t REG_BINARY /d ffccdd
then COPY
D:\SoftwareOK>REG COPY HKCU\Software\TestFolder HKCU\Software\TestFolderCopy
reg compare
C:\WINDOWS>REG SAVE /?
Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved
REG SAVE KeyName FileName
KeyName ROOTKEY\SubKey
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 save. If no path is specified, the
file is created in the current folder of the calling process
Examples:
REG SAVE HKLM\Software\MyCo\MyApp AppBkUp.hiv
Saves the hive MyApp to the file AppBkUp.hiv in the current folder
C:\WINDOWS>REG LOAD /?
Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved
REG LOAD KeyName FileName
KeyName ROOTKEY\SubKey (local machine only)
ROOTKEY
[ HKLM | HKU
] SubKey The key name to load the hive file into. Creating a new key
FileName The name of the hive file to load
You must use REG SAVE to create this file
Examples:
REG LOAD HKLM\TempHive TempHive.hiv
Loads the file TempHive.hiv to the Key HKLM\TempHive