I start a program A using Windows Task Scheduler. That program starts instances of another program B. The task is started on Windows startup and runs even if no user is logged on.
When I terminate the task in the Task Scheduler using "right click/end" the program A is terminated but the instances of program B continue running.
The instances of B could be terminated by stopping program A with ctrl+c or by using taskkill /t.
Can I tell the Task Scheduler to use one of the above options when ending the task?