HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

reg copy — Copy keys and their values in the registry. More information: <https://learn.microsoft.com/windows-s

Submitted by: @import:tldr-pages··
0
Viewed 0 times
keyscommandcopyandvaluesclireg copytheir
windows

Problem

How to use the reg copy command: Copy keys and their values in the registry. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-copy>.

Solution

reg copy — Copy keys and their values in the registry. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-copy>.

Copy a registry key to a new registry location:
reg copy {{old_key_name}} {{new_key_name}}


Copy a registry key recursively (with all [s]ubkeys) to a new registry location:
reg copy {{old_key_name}} {{new_key_name}} /s


[f]orcefully (without a prompt) copy a registry key:
reg copy {{old_key_name}} {{new_key_name}} /f

Code Snippets

Copy a registry key to a new registry location

reg copy {{old_key_name}} {{new_key_name}}

Copy a registry key recursively (with all [s]ubkeys) to a new registry location

reg copy {{old_key_name}} {{new_key_name}} /s

[f]orcefully (without a prompt) copy a registry key

reg copy {{old_key_name}} {{new_key_name}} /f

Context

tldr-pages: windows/reg copy

Revisions (0)

No revisions yet.