using System.Diagnostics; var psi = new ProcessStartInfo("shutdown","/f /r /t 5"); psi.CreateNoWindow = true; psi.UseShellExecute = false; Process.Start(psi);