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 (280k 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 (490 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 any way to add a warning message when someone tries to add a group member that already is member? Checked config but found nothing related. Added a new member that ... the group and there is no warning, and the logs show that the task was completed.

asked Jul 9 by lramirez (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)
3,439 questions
3,135 answers
7,993 comments
546,398 users