winrm icon indicating copy to clipboard operation
winrm copied to clipboard

Error: Unknown operation name

Open toren77 opened this issue 6 years ago • 3 comments

Hi I try winrm on windows powershell winrm -hostname "54.165.199.168" -username "Administrator" -password "secret" "ipconfig /all" getting folowing error Error: Unknown operation name: '54.165.199.168' same error appears with diffrent IPs

go version go1.11.5 windows/amd64

toren77 avatar Feb 19 '19 11:02 toren77

It would be interesting to see if that works with the normal windows winrs client. If you get the same error then that's probably not the fault of this winrm client, but the server.

masterzen avatar Feb 19 '19 14:02 masterzen

PS C:\Users\PCDA> Test-netConnection 54.165.199.168 -Port 5985

ComputerName : 54.165.199.168 RemoteAddress : 54.165.199.168 RemotePort : 5985 InterfaceAlias : ‏‏Ethernet SourceAddress : 192.168.2.106 TcpTestSucceeded : True

toren77 avatar Feb 19 '19 22:02 toren77

@toren77, thanks this shows the connection is possible, but doesn't validate the other end winrm handler is correctly enabled. I was more thinking about using another winrm client, such as winrs and check you can conclude a winrm transaction with the other end.

masterzen avatar Feb 20 '19 09:02 masterzen