Exemplo n.º 1
0
 public static void killProcess(string computerName, int PID)
 {
     if (ping(computerName))
     {
         ITerminalServer server = new TerminalServicesManager().GetRemoteServer(computerName);
         server.Open();
         server.GetProcess(PID).Kill();
     }
 }