title: Restart program unelevated
body: <p>For some reason, my C# program needs to restart with elevated privileges. I use the following code to achieve it:</p>
  
  <pre><code>private static void RestartForPermissionsFix()
  {
      ProcessStartInfo processInfo = new ProcessStartInfo();
      processInfo.Verb = "runas";
      processInfo.FileName = Assembly.GetExecutingAssembly().Location;
  
      Process.Start(processInfo);
  }
  </code></pre>
  
  <p>This works great.</p>
  
  <p>After I "fix my privileges", I want to restart the program <strong>unelevated</strong>. I tried the same as above without the "runas", but it does not work. I assume the process being started from an elevated process automatically gets elevated. Any idea?</p>