title: I want to copy and run .exe file on a remote Windows machine?
body: <p>i have copied the exe file and it was no problem, useing the following code, but now i want to run it, can anyboyd help me on this. 
  NOTE: i have the access to servers through remote desktop, but cant do this manually, coz there are dozens of them, cant get a program running on it like psex or whatever.</p>
  
  <pre><code>WindowsIdentity wi = new WindowsIdentity(token);
  
  //Next I set the WindowsImportsonationContext
  
  WindowsImpersonationContext impctx = wi.Impersonate();
  System.IO.File.Copy("C:\\output.html", "\\\\PW42\\c$\\output1.html", true);
  System.Diagnostics.Process p = new System.Diagnostics.Process();
  try
  {
      System.Diagnostics.Process.Start(@"\\PW42\c$\txt.bat");
      //runFile();
  }
  catch
  {
      Console.WriteLine("error");
  }
  </code></pre>