Dear Sireesh Cheruku,
Thank you for your detailed description of the issue with Task Scheduler on Windows Server 2022. Based on your steps, the observed behavior occurs when a task is manually run after its trigger has expired or been disabled. While the expectation is that the task should execute only once, the repetition logic defined in the trigger is still applied, resulting in an indefinite loop.
This behavior is by design in certain versions of Task Scheduler, where manual execution bypasses the trigger state but still references its repetition settings. To avoid this, I recommend creating a separate “On‑Demand” task without repetition configured, or disabling the repetition option entirely when tasks may need to be run manually. Alternatively, you can export the task XML, remove the repetition element, and re‑import it for manual execution scenarios.
I also suggest keeping your server updated with the latest cumulative patches, as improvements to Task Scheduler behavior are periodically included. If the issue persists, please share the exported XML configuration so our support team can analyze further.
Please click "Accept the answer" to support me. Thank you very much.
Kind regards,
QQ.