This commit is contained in:
L3D 2023-01-01 04:15:42 +01:00
parent 7183d17a20
commit c19691d629
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -22,3 +22,9 @@
password_never_expires: true password_never_expires: true
user_cannot_change_password: true user_cannot_change_password: true
groups: "{{ win_base_init__os_groups }}" 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