Schedule Suspend: Using AccountExpirationDate attribute
This article describes how to schedule suspend for accounts using the attribute: AccountExpirationDate.
In the Cayosoft Administrator Console, navigate to RULES > Cayosoft® Suspend™ > AD Users | Suspend rule.
Under Query, add a Filter*: by clicking the … (three dots).
-
Input the following parameters:
Copy{$_.AccountExpirationDate -lt (Get-Date) -and $_.AccountExpirationDate -ne $null} -
Click OK to accept change.
-
Under Properties to Display, add the property AccountExpirationDate.
Click OK to accept changes.
This will display any accounts that have expired up to the current date.
RECOMMENDED If you want to use current date +/- days from it, you can use (Get-Date).AddDays(<number of days>)
for example (Get-Date).AddDays(60) or (Get-Date).AddDays(-30).
Learn more about the rule here: AD Users | Suspend rule.
Comments
0 comments
Please sign in to leave a comment.