Copy-RegistryKey

Copies everything below the specified registry subtree to another subtree. If the key to be copied to does not exist, it is created.


Settings:

  • Registry key to be copied
    Select the key whose values or subordinate keys are to be copied. The wildcards * and ? and variables are allowed. Use the "..." button to select an existing key (on the packaging system) or enter the key manually.
  • Registry key to copy to
    Select the key under which the values or subordinate keys are to be copied. The wildcards * and ? and variables are allowed. Use the "..." button to select an existing key (on the packaging system) or enter the key manually.
  • Use 32-Bit mode on x64 computer
    If the script runs on a 64-bit operating system, referencing the HKEY_LOCAL_MACHINE\SOFTWARE key allows the 32-bit application counterpart HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node to be used automatically.
  • Include subkeys
    If this checkbox is activated, all subordinate keys are copied as well.


Example:

The following example copies all values and subkeys below SOFTWARE\CANCOM GmbH\Package Deployment from the LOCAL_MACHINE area to the CURRENT_USER hive.


Corresponds to DSM eScript commands:

  • RegCopyKey
  • RegCopyKeyEx


See also: