registry_entry_absent
Ensure that a registry entry is absent from the given key.
⚙️ Compatible targets: Windows
Parameters
Name | Documentation |
---|---|
key | Registry key (ie, HKLM:\Software\Rudder). This parameter is required. |
entry | Registry entry name. This parameter is required. |
Outcome conditions
You need to replace ${entry}
with its actual canonified value.
- ✅ Ok:
registry_entry_absent_${entry}_ok
- ☑️ Already compliant:
registry_entry_absent_${entry}_kept
- 🟨 Repaired:
registry_entry_absent_${entry}_repaired
- ☑️ Already compliant:
- ❌ Error:
registry_entry_absent_${entry}_error
Example
method: registry_entry_absent
params:
key: VALUE
entry: VALUE
Documentation
Ensure that a registry entry is absent from the given key.
There are two different supported syntaxes to describe a Registry Key:
- with short drive like
HKLM:\SOFTWARE\myKey
- with long drive name preceded by
Registry::
likeRegistry::HKEY_LOCAL_MACHINE\SOFTWARE\myKey
Examples
- name: Make sure the Rudder reg does not define the unwantedEntry property
method: registry_entry_absent
key: "HKLM:\SOFTWARE\Rudder"
entry: "unwantedEntry"
- name: Make sure the Rudder reg does not define the unwantedEntry property
method: registry_entry_absent
key: "Registry::HKEY_LOCAL_MACHINE:\SOFTWARE\Rudder"
entry: "unwantedEntry"