Created
May 4, 2017 19:33
-
-
Save natemccurdy/b83786887a7095b618f2c134bb5b0e26 to your computer and use it in GitHub Desktop.
windows profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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