Send a mail to new users after X days?
Hi
Is there a way to catch let's say all new users that have had their accounts for 30 days and send them a mail with for example a link to a questionnaire?
Best regards
Niklas
-
Hi Niklas,
1. Add mail attribute to Properties to display and System properties in AD Users report
2. To get users that were created for the last 30 days, add this code to Initialization Script section:
{$global:DatePeriod = (Get-Date).AddDays(-30)}
3. Add filter to Query Criteria: {whenCreated -ge $DatePeriod}
4. Add this script to To field:
{ $emails=@(); ($LastResult | %{ if($Null -ne $_ -and $_.mail -ne ''){$emails += $_.mail; }}); $emails; }.InvokeReturnAsIs()
Please let me know if it works for you.
Tatiana
Please sign in to leave a comment.
Comments
8 comments