title: PSexec not getting result
body: <p>I am trying to create an app that connecting to other computers to delete list of users from different computers. I am using <code>PSexec</code> tool and trying to access that tool with c# by executing the command form command line. I found a code that using process and execute more than command but once I chose <code>PSexec.exe</code> as <code>FileName</code> not recognizing the command 
  this is the code </p>
  
  <pre><code>ProcessStartInfo processStartInfo = new ProcessStartInfo("PSexec.exe");
  processStartInfo.WorkingDirectory = @"C:\PSTools";
  processStartInfo.RedirectStandardInput = true;
  processStartInfo.RedirectStandardOutput = true;
  processStartInfo.UseShellExecute = false;
  Process process = Process.Start(processStartInfo);
  if (process != null)
  {
     process.StandardInput.WriteLine("psexec \\2E01-Computer net localgroup administrators testuser/delete");
     process.StandardInput.WriteLine("ipconfig /all");
     process.StandardInput.Close(); // line added to stop process from hanging on 
     richTextBox1.Text = process.StandardOutput.ReadToEnd();
  }
  </code></pre>
  
  <p>if i use <code>cmd.exe</code> to get result it work fine. </p>
  
  <p><code>ProcessStartInfo processStartInfo = new ProcessStartInfo("CMD.exe");</code></p>
  
  <p>by executing opconfig with cmd.exe i got this result:</p>
  
  <pre><code>  Microsoft Windows [Version 6.3.9600]
  (c) 2013 Microsoft Corporation. All rights reserved.
  
  C:\Users&gt;ipconfig 
  
  Windows IP Configuration
  
  
  Wireless LAN adapter Local Area Connection* 12:
  
    Media State . . . . . . . . . . . : 
     Connection-specific DNS Suffix  . : 
  
  Wireless LAN adapter Wi-Fi:
  
     Connection-specific DNS Suffix  . : 
     Link-local IPv6 Address . . . . . : 
     IPv4 Address. . . . . . . . . . . : 
     Subnet Mask . . . . . . . . . . . : 
     Default Gateway . . . . . . . . . : 
  
  Ethernet adapter Ethernet:
  
     Media State . . . . . . . . . . . : 
     Connection-specific DNS Suffix  . : 
  
  Tunnel adapter isatap.{}:
  
     Media State . . . . . . . . . . . : 
     Connection-specific DNS Suffix  . : 
  
  Tunnel adapter Local Area Connection* 14:
  
     Connection-specific DNS Suffix  . : 
     IPv6 Address. . . . . . . . . . . : 
     Link-local IPv6 Address . . . . . : 
     Default Gateway . . . . . . . . . : ::
  </code></pre>
  
  <p>but if the i chane the FileName to Psexec will not get any result as below </p>
  
  <pre><code>  Microsoft Windows [Version 6.3.9600]
  (c) 2013 Microsoft Corporation. All rights reserved.
  
  C:\PSTools&gt;ipconfig 
  
  C:\PSTools&gt;
  </code></pre>
  
  <p>and sometimes it nit returing any result.</p>