0 votes

We have a couple scheduled tasks that are scoped to run on all user objects across our domain to check for things like upcoming password expiration and account expiration. These tasks run every day and there are conditions set for each one to determine if any actions should be taken. Currently, an event is logged for each object every time the scheduled task is run even if the conditions in the scheduled task aren't met which is making the logs really cluttered. When the conditions aren't met/no actions are taken, we get an event that just says "No operations executed" in the execution log. Is there a way to only log events when an operation is executed?

by (140 points)

1 Answer

0 votes
by (210k points)
selected by
Best answer

Hello,

Yes, it is possible. You need to disable logging scheduled tasks execution. It can only be done for all existing scheduled tasks. To disable logging the operation:

  1. Launch Adaxes Administration console.
  2. In the Console Tree, expand your service node.
  3. Right-click Logging and then click Properties in the context menu. image.png
  4. Activate the Log Settings tab.
  5. In the Do not log the following operations section, select the Execute scheduled task checkbox. image.png
  6. Click OK.
0

Thanks for your quick help! Will this also prevent logging for when an action is taken on an account by the scheduled task though? For example, if a scheduled task disabled an account if certain conditions are met, would that still be logged? If possible, I'd like to only disable logging if no actions are taken but still keep logging for when an action is taken.

0

Hello,

Will this also prevent logging for when an action is taken on an account by the scheduled task though?

No, this will only disable logging the actual scheduled task execution which is performed no matter of meeting the conditions.

if a scheduled task disabled an account if certain conditions are met, would that still be logged?

Yes, it will be logged.

If possible, I'd like to only disable logging if no actions are taken but still keep logging for when an action is taken.

That is exactly what selecting the Execute scheduled task checkbox will do.

0

That's exactly what I needed. Thank you!

Related questions

0 votes
1 answer

My scheduled task currently: Checks for staff in a particular OU that do not have an O365 license Adds a license Resets their AD Password Moves them to an OU based off ... scheduled task moves them out of the OU that the business rule is looking at. Thanks

asked Apr 15, 2020 by russmerriman (40 points)
0 votes
1 answer

Hi All, I'm trying to have a scheduled task email the helpdesk a list of machines from AD that have no description. I created a script and it runs the way I want it ... into just one email. Id like to run that in scheduled task if possible. Many thanks, Will

asked Nov 20, 2017 by will17 (310 points)
0 votes
1 answer

When trying to change the scheduled run time for two older tasks I get the error "Requested Service not found" when I click on the "Change schedule" link. It works fine ... . Is this just a permissions issue or is there something else going on? Thanks, Dan

asked Apr 24, 2017 by dwolf@hewlett.org (50 points)
0 votes
1 answer

I have a feild called Decommissioned Date and I can not figure out how to run a scheduled task the day after that date. So If an account got decommissioned today I want the task to run tomorrow.

asked Jan 9, 2020 by hgletifer (1.2k points)
0 votes
1 answer

I am trying to send a $context.logmessage from a condition script in a Scheduled Task but I get nothing in the log. Is this not possible? Morten A. Steien

asked Jul 20, 2020 by Morten A. Steien (150 points)
2,599 questions
2,338 answers
6,212 comments
843,657 users