# Ansible for Windows

**URL:** <https://forum.ansible.com/t/ansible-for-windows/35357>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 15, 2021, 9:10pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357 "2021-06-15T21:10:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Viegas](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@Gabriel\_Viegas](https://forum.ansible.com/u/Gabriel_Viegas)\
**Post date:** [June 15, 2021, 9:10pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357/1 "2021-06-15T21:10:38Z")

</div>

I have one question about using Ansible with Windows

1. How to enable Administrator user with Ansible for Windows?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [June 15, 2021, 9:11pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357/2 "2021-06-15T21:11:38Z")

</div>

You can use become:yes in your play. Iirc

---

<div class="post-metadata">

**Author:** ![Gabriel\_Viegas](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@Gabriel\_Viegas](https://forum.ansible.com/u/Gabriel_Viegas)\
**Post date:** [June 15, 2021, 9:17pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357/3 "2021-06-15T21:17:00Z")

</div>

Do you have any example module or playbook?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [June 15, 2021, 9:20pm UTC](https://forum.ansible.com/t/ansible-for-windows/35357/4 "2021-06-15T21:20:22Z")

</div>

[https://docs.ansible.com/ansible/latest/user\_guide/become.html](https://docs.ansible.com/ansible/latest/user_guide/become.html)

You can have it at the top of your play too
