# Monitor Scheduled tasks in Windows

**URL:** <https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162>\
**Category:** Extensions\
**Tags:** hosts-classic, extensions\
**Created:** [January 8, 2021, 11:37am UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162 "2021-01-08T11:37:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_G](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_g/32/11312_2.png) [@Thomas\_G](https://community.dynatrace.com/u/Thomas_G)\
**Post date:** [January 8, 2021, 11:37am UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/1 "2021-01-08T11:37:36Z")

</div>

Hi

We have a customer that have asked for monitoring of their own scheduled tasks the Task Scheduler in Windows.  
Have anyone made a plugin/extention for that and are willing to share it?

Mainly looking for something that will alert if the last run result is something else than 0x0 for the Enabled tasks.

 ![27803-1610105647812.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/9/09133fe22b72b07970db8122b8af41f9a1a9b312.png)

Note: Last run result “267009” and “267014” should be ignored. “267014” means terminated manually, and “267009” means running.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [January 8, 2021, 11:44am UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/2 "2021-01-08T11:44:26Z")

</div>

Our services has created a remote ActiveGate extension which does that as well as looking for hanging tasks. It’s not something that we can share for free though. If you’re interested in it, or a OneAgent version of the extension, please reach out to your account manager for a quote.

If you’ve got the time you can also create it yourself using the hands on documentation: [Develop your own Extensions — Dynatrace Docs](https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on/)

The command we used to get the statistics was schtasks

Kind regards,

Mike

---

<div class="post-metadata">

**Author:** ![Thomas\_G](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_g/32/11312_2.png) [@Thomas\_G](https://community.dynatrace.com/u/Thomas_G)\
**Post date:** [January 8, 2021, 11:52am UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/3 "2021-01-08T11:52:12Z")

</div>

Thanks Mike, I will check with our account manager. Are there somewhere we can see the extentions that have been developed by Dynatrace but hidden behind a payed service?  
Cause I guess we might find more of the “missing stuff” there for customers trying to move from other tools like AppMon, ITM etc.

---

<div class="post-metadata">

**Author:** ![torsten\_granli](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@torsten\_granli](https://community.dynatrace.com/u/torsten_granli)\
**Post date:** [January 8, 2021, 12:05pm UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/4 "2021-01-08T12:05:31Z")

</div>

Thank you for a very fast reply Michael. I`m reaching out to continue the discussion outside open forums.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [January 8, 2021, 12:05pm UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/5 "2021-01-08T12:05:54Z")

</div>

We’ve started adding them here: [https://www.dynatrace.com/technologies/](https://www.dynatrace.com/technologies/)

So far we have about 30 tiles that are covering generic technologies. If you search for “platform extension services” in the browser you’ll see them, one of them is the scheduled tasks monitoring one.

---

<div class="post-metadata">

**Author:** ![chandupatla\_sra](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@chandupatla\_sra](https://community.dynatrace.com/u/chandupatla_sra)\
**Post date:** [April 16, 2021, 2:36pm UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/6 "2021-04-16T14:36:48Z")

</div>

Can we also get an alert if the status of the task changes from Running to Stopped\disabled.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [April 16, 2021, 2:43pm UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/7 "2021-04-16T14:43:00Z")

</div>

That’s currently not part of the extension. We could add it though as part of a customization engagement.

---

<div class="post-metadata">

**Author:** ![tonicbenn2023](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tonicbenn2023](https://community.dynatrace.com/u/tonicbenn2023)\
**Post date:** [December 26, 2023, 2:58pm UTC](https://community.dynatrace.com/t/monitor-scheduled-tasks-in-windows/21162/8 "2023-12-26T14:58:48Z")

</div>

Hey, were you able to get this extension working using the default user (presumably SYSTEM) as the user account fo the scheduled task?

Thank you.
