I need to ensure an application run on a server alway, as a service do, but for some reason I can't create a real window service. I would like to have this app running as an user with its own desktop ( not in Session0 ). I know this is kind of worst practice, but I've no other solution. What's the best way in achieving this?
Here's an ugly, quick-and-dirty, insecure (and probably inadvisable) solution:
When the server boots it will logon as "user1", start the Terminal Services client with saved credentials for "user2", and lock the workstation. The Terminal Services client will logon "user2", start the application you intend to run on its own Session, and then lock the workstation.
This kinda makes me feel dirty.