0

I’m using the Powershell winrm invoke ExecuteShellCommand method, to test the output of a simple shell command:

When running the Shell Command directly on the SSH Terminal, i’m getting the correct output:

But when running the command using the winrm invoke ExecuteShellCommand method, i’m only getting the + sign in the StdOut field:

This is my XML Configuration File:

What am i missing here?

I did noticed,
That by removing the spaces in the command written in XML Configuration File, i’m getting more results in the StdOut field:

Ohad E asked