Python - winrm ntlm auth

Check out my video for NTLM authentication with python and the pywinrm module. This is a really cool module if you want to create scripts which run with domain credentials.



One thought on “Python – winrm ntlm auth”
  1. Hi,

    We are using Ansible to create and delete Windows/linux VM,

    below error is seen, while creating VM

    "msg": "ntlm: HTTPSConnectionPool(host='', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb278f3abd0>: Failed to establish a new connection: [Errno 110] Connection timed out',))",
    "unreachable": true,
    "changed": false
    every build requires a delete of the VM and rebuild to get it past this error.

    first WinRM connection attempt to the newly build Windows VM is failing but successful on the next

Leave a Reply

Your email address will not be published.

Captcha loading...