To be more precise, this is a failsafe that I am trying to create for my windows service. For information, I need my windows service to extract data from a server at 15mins intervals everyday. E.g., 12:00am, 12:15am, 12:30am, 12:45am, 1am... Hence, if my PC shuts down at 3.04pm and reboots and 3.05pm, I need my task scheduler to only restart the windows service at 3:15pm. If my PC shuts down and reboots at 3:25pm, I need my task scheduler to only start the windows service at 3.30pm. The task scheduler must run the windows service only once no matter the hour, at the __:00/15/30/45mins mark depending on when the PC reboots.
Previously, I have set the task scheduler "on a schedule" to restart the windows service at 15mins interval starting at 12am everyday. However, this causes a break in the data collected from server 1 and sent to server 2. Hence, I only need my task scheduler to execute the windows service "at startup". How am I able to do this? Any help is appreciated.