title: Start a process as user from an process running as admin
body: <p>I want to start another program which runs as user from a program running as administrator. </p>
  
  <p>The problem is that the second program needs to use outlook, which is not possible if the program runs as admin. The main program needs to run as admin. </p>
  
  <p>I did already come up with this two solutions:</p>
  
  <pre><code>Process.Start("cmd.exe", @"/C runas.exe /savecred /user:" + Environment.UserDomainName + "\\" + Environment.UserName + " " + "\"SomeProgram.exe" + "\"");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Process.Start("explorer.exe", "SomeProgram.exe");
  </code></pre>
  
  <p>But i have a problem with both solutions.
  The first one asks the user for the password (only the first time after windows was restarted).
  The second one probalby won`t work in the future, because as far as i found out it is considered as a bug and probably fixed with an future update.</p>
  
  <p>So I would like to know is there any other solution, where the user does not need to enter his password?</p>
  
  <p>This seems to work for me:</p>
  
  <pre><code>Process.Start("cmd.exe", @"/C runas.exe /TrustLevel:0x20000  " + "\"SomeProgram.exe" + "\"");
  </code></pre>