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 (70 points)

1 Answer

0 votes
by (206k 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 by RayBilyk (180 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 by davfount90 (20 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)
0 votes
1 answer

I would like users to use Adaxes to add themselves or others to a group, but instead of it just working, it has to go thru an approval process and be approved by the group owner before they are added. Thanks!

asked Jun 30 by RayBilyk (180 points)
0 votes
1 answer

When we deprovision a user the member of groups are deleted and the power shell scrips only runs as removing all memberships. I can't see what was removed. Is there a scrips I can run prior to removing those memberships that will e-mail what they are?

asked Oct 15, 2019 by meyerm (50 points)
2,556 questions
2,297 answers
6,126 comments
668,009 users