It always seemed to me that when you start the process (domain\user) mydomain\myuserwhen using Process.Start()it, it will start this new process using the same credentials - mydomain\myuser.
The problem I am facing is that my call Process.Start()seems to create a process under the SYSTEM account, which causes me rights issues in the running process (which should start under the administrator account due to the work that it does ) If it changes things - I create this process (user exe exe) from within the Windows installer .
Any suggestions? I read about Windows Group Policies (possibly) affecting this, but to be honest, it lost me.
EDIT: small snippet:
Where exenameand commandLineare the parameters for the method body:
ProcessStartInfo procInfo = new ProcessStartInfo(exeName, commandLine);
procInfo.WorkingDirectory = workingDirectory;
procInfo.UseShellExecute = false;
procInfo.CreateNoWindow = true;
Process process = Process.Start(procInfo);
Process.WaitForExit();
return process.ExitCode;
source
share