Forum Discussion

Mark_Block's avatar
Mark_Block
Copper Contributor
Feb 03, 2022
Solved

Externally trigger a .ps1 to exit

I'm running a .ps1 from Task Scheduler. If I stop the script from the Task Scheduler console with the End command, does that generate an event/trigger that the script can react to? (I'd like the scri...
  • Jonathan_Allen's avatar
    Jonathan_Allen
    Feb 09, 2022
    taking action within the script when an external action has stopped the scheduled job - no, this isnt possible.

Resources