My requirement is to run an EXE which is at host "abc". The EXE also communicates with downstream SQL server. pywinrm version is 0.4.3.

import winrm
s = winrm.Session("abc", auth=("username","passowrd"), transport="ntlm")
    r = s.run_cmd('D:\Jobs\echoprint.exe')//This also need to connect to SQL Server
    print(r)

Unfortunately, I get this error saying its not able to connect to SQL server SqlException in GetTableLayoutFromSP: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Any help is appreciated?

0

There are 0 best solutions below