Windows Scheduled Task Monitoring: Custom Datasource

  • 13 April 2023
  • 4 replies


Windows Scheduled Task Monitoring: 


Do Anyone created a Custom DS to discover the Windows Scheduled Task from the host device and monitor for the job failures ?


Best answer by Stuart Weenig 13 April 2023, 23:37

View original

4 replies

Userlevel 1
Badge +2

Have you taken a look at the JobMonitor feature?  There is an example detailing monitoring for Windows Scheduler tasks.

Userlevel 7
Badge +17

Don’t know of any. You could setup a job monitor. You could automate that through the API.,Example%202%3A%20Monitor%20Windows%20Scheduler%20Task,-Assume%20the%20monitored

I would be interested in a custom datasource for the Windows Task Scheduler as well. The requirements behind my request are to alert when a scheduled task is disabled / enabled. It doesn’t look like there is anything for this today and the scope of a job monitor isn’t a fit for this either.

Userlevel 7
Badge +17

Shouldn’t be too tough to build. Just reference this example. Adjust the script block so that instead of running Get-ChildItem, it runs Get-ScheduledTask instead.