salt.modules.reg

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.reg

Manage the registry on Windows

Required python modules: _winreg

class `salt.modules.reg.` `Registry`

  Delay '_winreg' usage until this module is used

`salt.modules.reg.` `create_key`(hkey, path, key, value=None)

  Create a registry key

  CLI Example:

      salt '*' reg.create_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version' '0.97'

`salt.modules.reg.` `delete_key`(hkey, path, key)

  Delete a registry key

  Note: This cannot delete a key with subkeys

  CLI Example:

      salt '*' reg.delete_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version'

`salt.modules.reg.` `read_key`(hkey, path, key)

  Read registry key value

  CLI Example:

      salt '*' reg.read_key HKEY_LOCAL_MACHINE 'SOFTWARE\Salt' 'version'

`salt.modules.reg.` `set_key`(hkey, path, key, value)

  Set a registry key

  CLI Example:

      salt '*' reg.set_key HKEY_CURRENT_USER 'SOFTWARE\Salt' 'version' '0.97'

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »