May 24, 2022

Samir Daoudi's Technical Blog

SharePoint, Office 365, C#, .Net, SQL Server News, Tips, Ebooks, Events, Webinars ….etc

Run a process as Administrator with C# programmatically

If you need to run external program from C# code with Administrator privileges,  this code might help. ProcessStartInfo info = new ProcessStartInfo("Process.exe"); info rguments = Application info info Process

If you need to run external program from C# code with Administrator privileges,  this code might help.

ProcessStartInfo info = new ProcessStartInfo("Process.exe");
info.UseShellExecute = true;
info.Verb = "runas";
Process.Start(info);

Leave a comment

You may have missed

Show Buttons
Hide Buttons

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: