registry_entry_present

Ensure the value of a registry entry is correct. If the key and/or its `entry' does not exist yet, it will be created.

Examples

-name: Rudder registry "myEntry" property must be set to 1
 method: registry_entry_present
   key: "HKLM:\SOFTWARE\Rudder"
   entry: "myEntry"
   value: "1"
   registryType: "Dword"
```.

⚙️ **Compatible targets**: Windows



#### Parameters

| Name | Documentation |
|------|---------------|
|**key**|Registry key path (ie, HKLM:\Software\Rudder).<br><br>This parameter is required.|
|**entry**|Registry entry name.<br><br>This parameter is required.|
|**value**|Registry value.<br><br>This parameter is required.|
|**registryType**|Registry value type (String, ExpandString, MultiString, Dword, Qword).<br><br>Choices:<br><ul><li>`String`</li><li>`ExpandString`</li><li>`MultiString`</li><li>`Dword`</li></ul><br>This parameter is required.|

#### Example

```yaml
method: registry_entry_present
params:
  registryType: String
  entry: VALUE
  key: VALUE
  value: VALUE