Member-only story
Remove a local user on Windows-like systems — Ansible module win_user
How to automate the removal of a local user “example” on Windows-like systems using the Ansible module win_user.
How to Remove a local user on Windows-like systems with Ansible?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible remove local user account
- `
ansible.windows.win_user
` - Manages local Windows user accounts
Today we’re talking about Ansible module `win_user
`.
The full name is `ansible.windows.win_user
`, which means that is part of the collection of modules specialized to interact with Windows target host.
It’s a module pretty stable and out for years.
It works in Windows and Windows Server operating systems.
It manages local Windows user accounts.
For Linux target use the `user
` module instead.