public ActionResult Kill(string computerName, string pid) { try { PSRemoting ps = new PSRemoting(computerName, config.FALCON_FORENSICS_USERNAME, config.FALCON_FORENSICS_PASSWORD, config.FALCON_FORENSICS_DOMAIN); ProcessManagement process = new ProcessManagement(ps); process.Kill(Convert.ToInt32(pid)); Response.StatusCode = (int)HttpStatusCode.OK; return(new EmptyResult()); } catch (Exception e) { throw new HttpException(500, e.Message); } }