0

I have written C# application that needs administrator privilege. So I manually changed the property of its executable to run as administrator. So it is running as administrator.

Now, this executable needs to run an external application. When I use Process.start(...); command the external application is automatically executed with administrator privilege. This is not good for my purpose.

Is there anyway to run the external application without administrator right from C#?

NESHOM
  • 899
  • 16
  • 46

1 Answers1

0

You can run the application under another user:

Process p = new Process("...");
p.StartInfo.UserName = "...";
p.StartInfo.Password = "...";
p.Start();
RagtimeWilly
  • 5,265
  • 3
  • 25
  • 41