Ansible fails to manage the Windows host with error "The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests" using WinRM

Solution Verified - Updated -

Issue

  • Ansible fails to manage the Windows host with error The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests using WinRM.
    e.g.
xx.xx.xx.xx | UNREACHABLE! => {
    "changed": false,
    "msg": "ntlm: The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests.  (extended fault data: {'transport_message': 'Bad HTTP response returned from server. Code 500', 'http_status_code': 500, 'wsmanfault_code': '2150859180', 'fault_code': 's:Receiver', 'fault_subcode': 'w:InternalError'})",
    "unreachable": true
}

Environment

  • Ansible Tower >= 3.8 (Ansible Automation Platform 1.2)
  • Ansible Automation Platform 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content