Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a process without elevation

Tags:

c#

uac

elevation

I want to create a child process in my application that will run not inherit the parent's UAC. The parent runs as administrator, and I want the child process to a run as a simple user w/o elevation. Does anyone know how this can be done?

I'm coding in c#.

Thanks!

like image 272
kingonly Avatar asked Apr 27 '26 04:04

kingonly


1 Answers

Very simple:

string appWithoutElevation = @"c:\some  foldre\app.exe";
Process.Start("explorer", appWithoutElevation); 
like image 109
Anton Avatar answered May 01 '26 05:05

Anton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!