I have an old software which does some work on domain as soon as it started. (Like sending a message to the server using MSMQ).
This software should start automatically when computer starts. (When anybody logged in actually.)
I used the registry key "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" to start this application.
The problem is: After a user logged in, this software starts as soon as possible and it gives an error like "Activex bla bla domain object bla bla cannot bla bla". Because something about domain connection is not ready yet. I can't remember the exact time but when a user logged in, after 1 or 2 minutes it becomes ready.
I'm thinking about adding a task using the task scheduler but i don't want to set the delay time. This software must start automatically after everything about domain connection is ready as soon as possible.
I need to create a task using task scheduler which should run automatically when somebody log in but only after it see some event on event viewer.(Like domain connection is ready event?)
I think this can be done by using "triggers" section on task scheduler. But i don't know which event i should use. (and it's id)