I have a powershell script that is triggered by the Windows Task Scheduler. this script is expected to run indefinitely. the first start was on 11/3 at 2:30 PM and then indefinitely. However everyday since then at 2:30 it's spawns a new instance even though the setting is "Do not start a new instance".
On 11/6 there are 3 instances running indefinitely.
Please note I have selected Windows Server 2019
Below settings are selected **
- Allow task to run on demand
- Run task as soon as possible after scheduler start is missed
- If task fails restart every 1minute
- Attempt to restart up to 5 times
- If task is already running, "Do not start a new instance"**
Below triggers are set
- Start on 11/3/2023 at 2:30PM; Recur every 1 days
- Repeat task every 5minutes for duration of Indefinitely