# Connecting windows from ansible control server

**URL:** <https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407>\
**Category:** Ansible Project\
**Tags:** windows, aws\
**Created:** [April 30, 2018, 4:38am UTC](https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407 "2018-04-30T04:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subani\_Prasad](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Subani\_Prasad](https://forum.ansible.com/u/Subani_Prasad)\
**Post date:** [April 30, 2018, 4:38am UTC](https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407/1 "2018-04-30T04:38:19Z")

</div>

hello folks,

is there any way to connect to aws windows machines using ansible by using aws private key file ?

i have launched one windows machine in aws with some keypair, is there any possible way to connect from ansible control server to the created windows machine by using that keypair, indeed we can able to connect if the mahcine is linux.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [April 30, 2018, 6:10am UTC](https://forum.ansible.com/t/connecting-windows-from-ansible-control-server/27407/2 "2018-04-30T06:10:51Z")

</div>

You need to decode the password using the ec2\_win\_password module and use that as the value for ansible\_password. I’ve got a very basic workflow that does just that here [https://github.com/jborean93/ansible-win-demos/blob/master/ec2-win-ami/main.yml#L56](https://github.com/jborean93/ansible-win-demos/blob/master/ec2-win-ami/main.yml#L56).
