I have a powershell script which triggers an email and I have saved this as EmailScript.PS1
(no issues with the script,it runs just fine). I am planning to schedule this script whenever an event is logged in ,example:
Event ID:111 Description:Task terminated
I am successfully able to schedule this script whenever the required event is triggered.
However, currently it takes into account all the tasks (not my target task named xyz
for example) which is running in task scheduler.
I would like to schedule this event based task only when an event is triggered for a specific task(not all the tasks), but couldnot find such a filter/dropdown in the task scheduler create task tab.
Any suggestions/help would be highly appreciated.