# This topic needs a title

**URL:** <https://forum.ansible.com/t/this-topic-needs-a-title/27256>\
**Category:** Ansible Project\
**Tags:** windows, awx\
**Created:** [April 12, 2018, 11:43am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256 "2018-04-12T11:43:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishita\_pandey](https://avatars.discourse-cdn.com/v4/letter/i/9dc877/32.png) [@ishita\_pandey](https://forum.ansible.com/u/ishita_pandey)\
**Post date:** [April 12, 2018, 11:43am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256/1 "2018-04-12T11:43:33Z")

</div>

Hi team,

I am trying to setup winrm connection to windows 12 but getting below error:

\<10.47.11.89\> WINRM CONNECTION ERROR: the specified credentials were rejected by the server Traceback (most recent call last): File “/usr/lib/python2.6/site-packages/ansible/plugins/connection/winrm.py”, line 154, in \_winrm\_connect self.shell\_id = protocol.open\_shell(codepage=65001) # UTF-8 File “/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/protocol.py”, line 132, in open\_shell res = self.send\_message(xmltodict.unparse(req)) File “/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/protocol.py”, line 207, in send\_message return self.transport.send\_message(message) File “/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/transport.py”, line 179, in send\_message raise InvalidCredentialsError(“the specified credentials were rejected by the server”) InvalidCredentialsError: the specified credentials were rejected by the server fatal: [10.47.11.89]: UNREACHABLE! =\> { “changed”: false, “msg”: “basic: the specified credentials were rejected by the server”, “unreachable”: true } to retry, use: --limit @/var/lib/awx/.ansible/tmp/test\_housekeeping\_full.retry

The user that i am trying is added to administrator group as well still the issue.  
Can someone please suggest.

Regards,  
Ishita

---

<div class="post-metadata">

**Author:** ![Bishwajit\_Samanta](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Post date:** [April 12, 2018, 12:03pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256/2 "2018-04-12T12:03:40Z")

</div>

Share me your host file which you have configured in ansible, where you have decalared your connection type as winrm etc. May be i can look into it and help you.

---

<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 12, 2018, 12:38pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256/3 "2018-04-12T12:38:21Z")

</div>

You are also using Basic authentication over HTTP which isn’t allowed by default on Windows and would be causing the rejection error. Please switch to a more secure authentication transport that can encrypt the messages over http like NTLM, Kerberos or CredSSP or use a HTTPS endpoint which encrypts the whole transport packets for you.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![Bishwajit\_Samanta](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Post date:** [April 12, 2018, 3:38pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/27256/4 "2018-04-12T15:38:07Z")

</div>

Check whether these configurations are there in your host file…

ansible\_user: admin  
ansible\_password: XXXXXXX  
ansible\_winrm\_scheme: https  
ansible\_winrm\_transport: credssp  
ansible\_port: 5986  
ansible\_connection: winrm  
ansible\_winrm\_server\_cert\_validation: ignore  
validate\_certs: false
