# Ansible for windows

**URL:** <https://forum.ansible.com/t/ansible-for-windows/31093>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 21, 2019, 5:17pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093 "2019-08-21T17:17:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uday1kiran](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/uday1kiran/32/1552_2.png) [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Post date:** [August 21, 2019, 5:17pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093/1 "2019-08-21T17:17:58Z")

</div>

Hi,

I wrote an autoit exe which will launch out application,test its functionality and store the logs in results.txt

I want ansible to copy the autoit exe, a config file and our application to a vm amd launch the autoit exe.

How to launch this and wait till it completes and copy the file back.?

And also, I don’t want the ansible to wait till the exe completes, it should come back after some time and check whether it completed or not.So that, it can check other machines instead of waiting at first machine.

How to achieve this??

---

<div class="post-metadata">

**Author:** ![Barun\_kumar](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@Barun\_kumar](https://forum.ansible.com/u/Barun_kumar)\
**Post date:** [September 1, 2019, 1:28pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093/2 "2019-09-01T13:28:13Z")

</div>

Let me know if you find the solutions for this

---

<div class="post-metadata">

**Author:** ![uday1kiran](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/uday1kiran/32/1552_2.png) [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Post date:** [September 1, 2019, 1:33pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093/3 "2019-09-01T13:33:33Z")

</div>

Not yet

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [September 2, 2019, 4:58pm UTC](https://forum.ansible.com/t/ansible-for-windows/31093/4 "2019-09-02T16:58:03Z")

</div>

Did you try using async to run the command? I think you should be able to use async with win\_shell module. The other steps you describe sound like they could be done using win\_copy module and fetch module to retrieve the test results.

See [https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_async.html](https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html) for information about async features of ansible.

Hope this helps,

Jon
