You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device I am trying to connect has NTLM enabled.
I tried to connect using python winrm library it got connected, but when I tried to connect it using go lang it is giving error.
Python Library - pywinrm
The text was updated successfully, but these errors were encountered:
endpoint := &winrm.Endpoint{Host: "Host", Port: 5985, HTTPS: false, Insecure: false, CACert: nil, Cert: nil, Key: nil, Timeout: 100}
params := winrm.Parameters{TransportDecorator: func() winrm.Transporter { return &winrm.ClientNTLM{} }}
client, err = winrm.NewClientWithParameters(endpoint, "username", "password", ¶ms)
shell, err = client.CreateShell()
Getting error while creating shell -"http response error: 401 - invalid content type"
The device I am trying to connect has NTLM enabled.
I tried to connect using python winrm library it got connected, but when I tried to connect it using go lang it is giving error.
Python Library - pywinrm
The text was updated successfully, but these errors were encountered: