Summary: This article describes how to get a report of Active Directory Users suspended 30 days ago.
Applies to: Cayosoft Administrator 8.x or later.
ID: KB20211215-1
Configuration
- Create the AD Users report.
- In Query criteria specify this script:
{accountNameHistory -eq "<objectsuspended/>" -and accountNameHistory -like "*SuspendReport*" -and whenChanged -ge $compareDateTime}
- In Other Query Settings in Filter specify this script:
{ [DateTime]::Parse(([xml]($_.accountNameHistory -like "*type=""SuspendReport""*")[0]).ObjectOperationsReport.start) -ge $compareDateTime }
- In Initialization script:
{ $global:compareDateTime = [DateTime]::Now.AddDays(-30) }
- Save changes.
Comments
0 comments
Please sign in to leave a comment.