title: PSExec does not show output of the started child process (local machine)
body: <p>We are in the need of spawning processes from session 0 isolation to a logged in user in session 1. 
  This task is done by using <code>psexec</code>, this happens entirely on the same machine, but I am unable to get the output of the child process to be displayed in psexec. Since this runs on a build-server I <strong>don't want to redirect output to a file, etc</strong></p>
  
  <p>Here is a sample call which does not work:</p>
  
  <pre><code>C:\&gt;PsExec.exe cmd.exe -i 1 -u user -p pwd /C echo foo
  </code></pre>
  
  <p>The result shows nowhere any "foo"</p>
  
  <pre><code>PsExec v2.11 - Execute processes remotely
  Copyright (C) 2001-2014 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  cmd.exe exited with error code 0.
  </code></pre>
  
  <p>One thing that works, but is currently useless is to ommit <code>-i</code> and add <code>\\localhost</code>:</p>
  
  <pre><code>C:\&gt;PsExec.exe  \\localhost cmd.exe  /C echo foo
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>PsExec v2.11 - Execute processes remotely
  Copyright (C) 2001-2014 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  
  foo
  cmd.exe exited on localhost with error code 0.
  </code></pre>
  
  <p>But when I specify session 1, it breaks. This:</p>
  
  <pre><code>C:\&gt;PsExec.exe cmd.exe -i 1 -u user -p pwd \\localhost /C echo foo
  </code></pre>
  
  <p>again shows no <code>foo</code> for me.</p>
  
  <p>Again: The intention is not to <code>tee</code> or redirect <code>echo foo</code> into some file and then perform <code>type myfile.log</code> as a second step but to receive the output in the original psexec.</p>
  
  <p>We are bound to session 1 as we need a Direct 3D context, having the service configured with "Allow interacting with the desktop" does not help here.</p>