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.
Unfortunately LogonUser is not a solution for me because this does not create its own session.
Is there any way of doing it in C#/PInvoke or maybe powershell?
EDIT:
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".
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.
Similar to XP solution: Create an interactive logon session