title: Create an interactive logon session windows 7
body: <p>I need to create interactive logon session for a user and start an app in this session for this user account.
  I do not need it to become active session at any point. All I need is having additional session running in the background with an app in it.</p>
  
  <p>Unfortunately LogonUser is not a solution for me because this does not create its own session.</p>
  
  <p>Is there any way of doing it in C#/PInvoke or maybe powershell?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>More details on what I am trying to achieve:
  I know it is not elegant solution but if I could automate this it would be "a solution".</p>
  
  <p>I have 3rd party application which I want to run multiple times on a single desktop. I have tried shift-right clicking "runs as user" but I am getting error can not access "C:\Users\Default\AppData".
  PInvoke Logonuser fails with access denied exception.
  If I switch to another user than multiple instances run without any issues.</p>
  
  <p>Similar to XP solution:
  <a href="https://stackoverflow.com/questions/2134391/create-an-interactive-logon-session">Create an interactive logon session</a></p>