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 (227k 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

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 (220 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 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 by Simone.Vailati (270 points)
0 votes
1 answer

I'm trying to schedule a report to look in a few specific OUs. Currently "Look in" location only allows for single instance or multiple drop downs. How do I schedule multiple OU locations without creating multiple reports?

asked Jul 2, 2020 by Al (20 points)
2,801 questions
2,535 answers
6,605 comments
61,643 users