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);
PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, M365, C#, .Net, SQL Server News, Tips….etc
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);