static void Main(string[] args) { string path = @"C:WindowsAppPatchAppLoc.exe"; ProcessStartInfo P = new ProcessStartInfo(); P.FileName = path; P.UserName = "administrator"; System.Security.SecureString ss = new System.Security.SecureString(); ss.AppendChar('s'); ss.AppendChar('1'); ss.AppendChar('2'); ss.AppendChar('3'); ss.AppendChar('3'); ss.AppendChar('3'); P.Password = ss; P.UseShellExecute = false; P.StandardOutputEncoding = Encoding.UTF8; Process.Start(P); // System.Diagnostics.Process.Start(@"D:Program Files1InputEasy.exe",{ Verb = "runas" }); // string path = @"D:Program Files1InputEasy.exe"; // string path = @"C:WindowsAppPatchAppLoc.exe"; //string userName, SecureString password, string domain //Process.Start(new ProcessStartInfo(path) { Verb = "runas" }); // Process.Start(path, @"Administrator", ss, "yuming"); }