community.windows.win_auto_logon – Adds or Sets auto logon registry keys.¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_auto_logon
.
Parameters¶
Examples¶
- name: Set autologon for user1
community.windows.win_auto_logon:
username: User1
password: str0ngp@ssword
- name: Set autologon for abc.com\user1
community.windows.win_auto_logon:
username: abc.com\User1
password: str0ngp@ssword
- name: Remove autologon for user1
community.windows.win_auto_logon:
state: absent
- name: Set autologon for user1 with a limited logon count
community.windows.win_auto_logon:
username: User1
password: str0ngp@ssword
logon_count: 5
Authors¶
Prasoon Karunan V (@prasoonkarunan)