2018-01-19 13:16:36 +00:00
|
|
|
# reg copy
|
|
|
|
|
|
|
|
> Copy keys and their values in the registry.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-copy>.
|
2018-01-19 13:16:36 +00:00
|
|
|
|
|
|
|
- Copy a registry key to a new registry location:
|
|
|
|
|
|
|
|
`reg copy {{old_key_name}} {{new_key_name}}`
|
|
|
|
|
2024-03-07 04:45:02 +00:00
|
|
|
- Copy a registry key recursively (with all [s]ubkeys) to a new registry location:
|
2018-01-19 13:16:36 +00:00
|
|
|
|
|
|
|
`reg copy {{old_key_name}} {{new_key_name}} /s`
|
|
|
|
|
2024-03-07 04:45:02 +00:00
|
|
|
- [f]orcefully (without a prompt) copy a registry key:
|
2018-01-19 13:16:36 +00:00
|
|
|
|
|
|
|
`reg copy {{old_key_name}} {{new_key_name}} /f`
|