I have a machine that will be deployed at a customer's location. The machine will be headless and only be accessed via RDC. (Unless there is a catastrophe.) There is a piece of software that must run at all times to log data from connected sensors. The software only works when it runs in the "foreground". That is to say that if I have it start up as a task using the "Run whether user is logged on or not" I can see in in the Task Manager, but no data gets logged. If I kill it and run the task via Task Scheduler, it still doesn't log data. If I kill it and start it via it's pinned task bar icon, it works.
How do I get this software to run on boot**? I want to do it such that when I RDC in using a username and password, I see the application. However, if someone were to plug in keyboard and mouse, the computer would NOT be unlocked.
** I have the machine's BIOS set to boot automatically after power failure.