Fix UAC
This commit is contained in:
parent
7183d17a20
commit
c19691d629
1 changed files with 6 additions and 0 deletions
|
@ -22,3 +22,9 @@
|
|||
password_never_expires: true
|
||||
user_cannot_change_password: true
|
||||
groups: "{{ win_base_init__os_groups }}"
|
||||
register: _user
|
||||
|
||||
- name: Set UAC to always notify
|
||||
ansible.windows.win_powershell:
|
||||
script: 'Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 5'
|
||||
changed_when: _user.changed
|
||||
|
|
Loading…
Reference in a new issue