title: Task scheduler can't show GUI of the application after login (Run whether user is logged on or not mode) - How bypass it with C#
body: <p>Please take a look at this thread :<br />
  <a href="https://stackoverflow.com/questions/39736810/task-scheduler-cant-show-gui-of-the-application-after-logout-and-login-run-whe">Task scheduler can't show GUI of the application after logout and login (run whether user is logged on or not)</a></p>
  <hr>
  <p>This seems to be the way that recent versions of Windows  <code>TaskScheduler</code>.</p>
  <p>According to <a href="https://technet.microsoft.com/en-us/library/cc722152.aspx" rel="nofollow noreferrer">Microsoft</a> (emphasis added):</p>
  <blockquote>
  <p>You can specify that a task should run even if the account under which the task is scheduled to run is not logged on when the task is triggered. To do this, select the radio button labeled Run whether user is logged on or not . <strong>If this radio button is selected, tasks will not run interactively.</strong> To make a task run interactively, select the Run only when user is logged on radio button.</p>
  </blockquote>
  <p>Essentially, if you select 'Run whether user is logged on or not', the process will not start a UI.</p>
  <hr>
  <p>I need to start app before user's login.<br />
  So i chose <code>Run whether user is logged on or not</code> radio button.<br />
  But in this mode i can't see GUI after login.<br />
  I need a trick in c# or other way to show that app's UI after login.</p>