# Connection to windows hosts via ansible

**URL:** <https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 7, 2022, 6:42am UTC](https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298 "2022-02-07T06:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Jadhav](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Post date:** [February 7, 2022, 6:42am UTC](https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298/1 "2022-02-07T06:42:16Z")

</div>

Hi Guys,  
Do we need to do any set up on windows host to connect via ansible winrm module or is it by default enabled .Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 7, 2022, 6:50am UTC](https://forum.ansible.com/t/connection-to-windows-hosts-via-ansible/36298/2 "2022-02-07T06:50:33Z")

</div>

Hi Akshay,

You need to do [https://docs.ansible.com/ansible/latest/user\_guide/windows\_setup.html](https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html)
