0

I'm writing a C# program that runs on a remote windows embedded device. it is running in admin mode.

From this program I try to open an exe, but by default, this exe is opened in the same admin session.

How can I open it as another user?

I already tried different things googled here and there, especially : Starting a process with credentials from a Windows Service.

But it still opens in the admin session.

Thanks for your suggestions.

Irwene
  • 2,807
  • 23
  • 48
Avironman
  • 1
  • 1
  • 1
    Just for clarification, is the app that is trying to launch the process a service ? Or is it a more classical desktop (GUI / CLI) app ? Because on windows, that WILL have an impact. – Irwene Aug 23 '22 at 14:54
  • Sounds like you need impersonation – Charlieface Aug 23 '22 at 19:05
  • App is a CLI, but might be a service as well, depend if it's better as you seem to mention that there might be a difference. – Avironman Aug 24 '22 at 08:47

0 Answers0