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
When we execute powershell commands (with convertto-json option) remotely using winrm client, we observe that the json output of powershell getting truncated.
Initially we thought this may be due to large output of powersheIl for some of the commands we are executing. But we started observing this issue even for commands which don't display larger output.
We are unable to figure out what the issue could be. Is this due to network latency?
Anyone workaround for this issue?
We are executing the powershell commands as below connecting remotely to windows 2016 server.
endpoint := winrm.NewEndpoint(Host, 5985, false, false, nil)
client, err := winrm.NewClient(endpoint, UserName, Password)
client.RunWithString(cmd , "")
The text was updated successfully, but these errors were encountered:
Did you ever figure this out? I'm having the same problem. I did some debugging and confirmed that the json is correctly made via ConvertTo-Json in the powershell, but then the stdout from the execution shows no data in the winrm after execution. I'm not sure why this occurs either, the powershell script exits with return code 0, there is nothing else to the script it just...doesn't have any response when it's read in from winrm.
When we execute powershell commands (with convertto-json option) remotely using winrm client, we observe that the json output of powershell getting truncated.
Initially we thought this may be due to large output of powersheIl for some of the commands we are executing. But we started observing this issue even for commands which don't display larger output.
We are unable to figure out what the issue could be. Is this due to network latency?
Anyone workaround for this issue?
We are executing the powershell commands as below connecting remotely to windows 2016 server.
endpoint := winrm.NewEndpoint(Host, 5985, false, false, nil)
client, err := winrm.NewClient(endpoint, UserName, Password)
client.RunWithString(cmd , "")
The text was updated successfully, but these errors were encountered: