- name: hide service account win_regedit: path: HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList name: "{{ winrm_remote_user }}" type: dword value: 1 state: present