Working with blank appointments
Want to log in as one account and update the current user registry keys for another account "A Account" which has a blank password
- name: Add Account
win_user:
name: "{{ a_user }}"
password: "{{ blank_password }}"
state: Present
fullname: A Account
description: A Account
password_expired: no
password_never_expires: yes
groups:
- Users, Remote Desktop Users
groups_action: add
- name: Current User with a blank password
win_dsc:
resource_name: Registry
Ensure: Present
Force: True
Key: "{{ item.key }}"
ValueName: "{{ item.name }}"
ValueData: "{{ item.data }}"
ValueType: "{{ item.type }}"
PsDscRunAsCredential_username: "{{ a_user }}"
PsDscRunAsCredential_password: "{{ blank_password | default(omit) }}"
loop:
- { key: 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects', name: 'VisualFXSetting', data: '00000002', type: 'Dword' }