How would one go about causing an .exe to run when a Windows system boots, and leave the .exe running regardless of who is logged in? Is this possible?
As per this Sysinternals forum post, the most reliable way to do so is to add a scheduled task. Simply define a trigger
You also have to set the task to
This is distinct from the
If you wanted to do this programatically (i.e. make your program add itself to system startup), the best way would be to create a Windows service.