# Ansible winrm problem

**URL:** <https://forum.ansible.com/t/ansible-winrm-problem/21031>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [March 31, 2016, 6:18am UTC](https://forum.ansible.com/t/ansible-winrm-problem/21031 "2016-03-31T06:18:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_O\_Brien](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Post date:** [March 31, 2016, 6:18am UTC](https://forum.ansible.com/t/ansible-winrm-problem/21031/1 "2016-03-31T06:18:56Z")

</div>

Hi guys,

I’m spinning up EC2 instances on AWS and I’m getting the following error:

`

---

<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:** [March 31, 2016, 9:04am UTC](https://forum.ansible.com/t/ansible-winrm-problem/21031/2 "2016-03-31T09:04:00Z")

</div>

Guessing here, since this is not something I’ve tried

This poster seemed to get the same error as you: In his case there was a proxy involved. Would there be a proxy in your scenario too? I think there are winrm proxy settings now although this isn’t something I’ve tried.

[http://search-devops.com/m/PLILD1J1SKcY32cn&subj=+ansible+project+Ansible+connect+to+Windows+instance+through+proxy](http://search-devops.com/m/PLILD1J1SKcY32cn&subj=+ansible+project+Ansible+connect+to+Windows+instance+through+proxy)

HTH

Jon

---

<div class="post-metadata">

**Author:** ![David\_O\_Brien](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Post date:** [April 1, 2016, 12:45am UTC](https://forum.ansible.com/t/ansible-winrm-problem/21031/3 "2016-04-01T00:45:53Z")

</div>

Yeah, I saw that one and I’m already setting all the no\_proxy environment variables on my Ansible machine.  
The odd thing is, I can telnet just fine, just can’t connect.

I tried the pywinrm module directly and get the same error. Printing out the python os.environ.keys I can see all my proxy settings.

Running out of ideas here.

---

<div class="post-metadata">

**Author:** ![Quang\_Truong](https://avatars.discourse-cdn.com/v4/letter/q/e95f7d/32.png) [@Quang\_Truong](https://forum.ansible.com/u/Quang_Truong)\
**Post date:** [April 1, 2016, 1:35am UTC](https://forum.ansible.com/t/ansible-winrm-problem/21031/4 "2016-04-01T01:35:22Z")

</div>

Have you try to run the EnableAnsible.ps1 before? I encountered this error usually because the preparation for WinRM wasn’t run successfully

Quang
