I need to create a startup script on a server that is live in production, so unfortunately I don't have the luxury of trial and error.
I need to start an application upon server bootup that is run as a particular service account. I need the same instance of that application to be accessible when I manually log into the server later using that same account. If I use 'runas' or something else (suggestions?) will the application be running in that profile, or just running in the background as a process I can see in task manager?
If the latter, what options do I have to set the app to run automatically upon startup and be available when I log in? Logging that service account in as part of the startup process is fine if needed.