Hi!,

Im currently developing a EXE file that executes SCHTASKS.exe that schedules a task on the windows scheduler.

The problem is that sometimes it cannot schedule properly the schedule tasks. While other times, it does. I caught an error in my debug log as follows:

Error Number : -2147164154
Error Description : Automation error
The component is configured to use synchronization and a thread has timed out waiting to enter the context.

Ive search the web for the error number, but none gave me any results. Has anyone tried this? Help appreciated.!