Posted on 2009-02-24
I used a script to create an event trigger on all the computers on my network which sends an email notification when an error event is entered into the Application log. I haven't received any emails over the last month so I went to look at the event triggers and some of them say "Could not Start", as when a Scheduled Task does not have proper credentials set to run the task.
The Runs As field for the triggers is set to "NT AUTHORITY\SYSTEM". Would it be necessary to set a password for every trigger on each computer in order to get the trigger to run? I don't see any parameter for eventtriggers.exe which will allow me to set the credentials with a script.
Further, I thought about using schtasks.exe to set credentials for each trigger, however when the triggers are created the name of each trigger in Scheduled Tasks has a unique set of numbers amended to it making the use of a script impossible as far as I can see.
Anyway to get these triggers to work without visiting each computer? Or any way to re-create them with credentials which will allow them to run? Thanks for any help.