I have a process runned as system user and if i try to start another file form this process it starts from system user too. How can I start a file as user or admin?
Asked
Active
Viewed 34 times
-5
-
1https://stackoverflow.com/questions/133379/elevating-process-privilege-programmatically – RelativeLayouter May 19 '22 at 14:15
-
When you start the process via a ProcessStartInfo you can provide Credentials for a user you want that the process starts with. But normally this is something you don't want to do. Maybe tell us why you need something like that. – Ralf May 19 '22 at 14:22
-
Starting it as another user is relatively straightforward. Starting it in a different session (say, one of the sessions on the machine with an interactive user currently logged in, such that it can display UI) is quite a bit harder. Which of those are you trying to do? – Damien_The_Unbeliever May 19 '22 at 14:25