0 votes

For example, if the scope is a specified OU, running the report will list management history for every object in the OU even if it has had no management operations in the specified timeframe. Is there a way to modify this report so objects that have not had any recent modifications are excluded from the report results?

by (120 points)

1 Answer

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

Hello,

Yes, it is possible. To achieve the desired behavior, remove the below code parts from the script used to generate the report:

$noRecords = $True
$noRecords = $False
# If there are no records, add <No records> item
if ($noRecords -eq $True)
{
    if ($NULL -eq $styleNoRecords)
    {
        $styleNoRecords = $Context.Items.CreateItemStyle("#3d3d3d", $NULL,
            "ADM_LISTITEMFONTSTYLE_REGULAR")
    }
    $Context.Items.Add(-1, "<No records>", "Information", $columnValues, $styleNoRecords)
}
0

This worked perfectly, thank you!

Related questions

0 votes
1 answer

This would seem like an easy setting since right now, it's causing so much logs because on the main screen, I have a few reports that are custom made and everytime a user ... . Below is a screenshot example of hoe it constantly can fill up the log. Thank You!

asked Jul 31, 2023 by Edogstraus00 (470 points)
0 votes
1 answer

We have four OUs in Active Directory (Pending Deletion, Disabled with Mail Delegates, Disabled with HR Extensions and Disabled_Temp_Leave) that users are moved to prior to their eventual ... past 7 days have been moved to one of 4 of these OUs. Thanks!

asked Jun 3, 2021 by RayBilyk (230 points)
0 votes
1 answer

Is there a way to pull a report within Adaxes to find out how many computer objects a user will have associated to them?

asked Mar 2, 2022 by Tarun Sharma (20 points)
0 votes
1 answer

Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command? For example, HR submits a status change for an employee. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12, 2021 by davfount90 (20 points)
0 votes
1 answer

Is there a way to have a Scheduled Task with 4 different condition? I want to create a scheduled task start every Monday and the condition see: The next Saturday of the week ... of the week is the fifth of the month then no action Thanks in advance, Simone

asked Jan 18, 2022 by Simone.Vailati (430 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users