Remove-RegistryKey

Deletes a key or value from the registry.


Settings:

  • Key
    Select the key from which a value or the entire key is to be deleted. The wildcards * and ? and variables are allowed. Use the "..." button to select an existing key (on the packaging system) or enter the key manually.
  • Value name
    Optionally the whole key or the name of a value.
    • Delete Key
      Select this option to delete the specified key with all values and subkeys. 
    • Radio button
      Select an existing value (on the packaging system) from the drop-down list or enter the value name 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.


Example:

The following example deletes the specified registry key including all values and subkeys in the CURRENT_USER hive.


Corresponds to DSM eScript command:

  • RegDeleteKey


See also: