# WinRM http\_status\_code: 500 with Basic authentication

**URL:** <https://forum.ansible.com/t/winrm-http-status-code-500-with-basic-authentication/29291>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 18, 2018, 6:48pm UTC](https://forum.ansible.com/t/winrm-http-status-code-500-with-basic-authentication/29291 "2018-12-18T18:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneil\_Younis](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Aneil\_Younis](https://forum.ansible.com/u/Aneil_Younis)\
**Post date:** [December 18, 2018, 6:48pm UTC](https://forum.ansible.com/t/winrm-http-status-code-500-with-basic-authentication/29291/1 "2018-12-18T18:48:06Z")

</div>

I have a very odd situation, I have a new installation of CentOS7 on a free version of VSphere and I’m trying to test out Ansible to configure Windows computers but I am getting the dreaded Code 500 when trying to do the win\_ping  
module from ansible.

I am trying to use basic authentication and would NOT like to use any other kind of authentication. What could be causing this issue? I know I can manage with a vagrant centos7 machine doing exactly the same setup but cannot get anywhere with centos7 installed on a free vsphere machine. I have not added any certs anywhere.

I have run the script to enable WinRM on both Win10 machines:

`Service RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;; WD) MaxConcurrentOperations = 4294967295 MaxConcurrentOperationsPerUser = 1500 EnumerationTimeoutms = 240000 MaxConnections = 300 MaxPacketRetrievalTimeSeconds = 120 AllowUnencrypted = true Auth Basic = true Kerberos = true Negotiate = true Certificate = false CredSSP = false CbtHardeningLevel = Relaxed DefaultPorts HTTP = 5985 HTTPS = 5986 IPv4Filter = * IPv6Filter = * EnableCompatibilityHttpListener = false EnableCompatibilityHttpsListener = false CertificateThumbprint AllowRemoteAccess = true`

My hostfile for Ansible only has two IP addresses of Windows 10 machines that are reachable via pinging manually.

Host File:

`
