static void StopEtw() { var logman = Process.Start("logman.exe", "stop " + sessionName + " -ets"); logman.WaitForExit(); }