Manage the registry on Windows
depends: |
|
---|
Delay '_winreg' usage until this module is used
Create a registry key
CLI Example:
salt '*' reg.create_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version' '0.97'
Delete a registry key
Note: This cannot delete a key with subkeys
CLI Example:
salt '*' reg.delete_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version'
Read registry key value
CLI Example:
salt '*' reg.read_key HKEY_LOCAL_MACHINE 'SOFTWARE\Salt' 'version'
Set a registry key
CLI Example:
salt '*' reg.set_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version' '0.97'