Skip to content

Instantly share code, notes, and snippets.

@natemccurdy
Created May 4, 2017 19:33
Show Gist options
  • Save natemccurdy/b83786887a7095b618f2c134bb5b0e26 to your computer and use it in GitHub Desktop.
Save natemccurdy/b83786887a7095b618f2c134bb5b0e26 to your computer and use it in GitHub Desktop.
windows profiles
# This will disable UAC on Windows nodes.
#
# Requires: puppetlabs/registry
#
class profile::windows::disable_uac {
registry::value { 'Disable UAC':
key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System',
value => 'EnableLUA',
data => '0',
type => 'dword',
}
# Refer to the link below to determine what different values do.
# Valid data values are 0 - 5.
# https://msdn.microsoft.com/en-us/library/Cc232761.aspx
registry::value { 'Set UAC Consent Prompt Level':
key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System',
value => 'ConsentPromptBehaviorAdmin',
data => '5',
type => 'dword',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment