0 votes

Is it possible to setup a scheduled task for password expiration notifier to send one email a day for accounts whose password will expire in less than X amount of days that have the AD attribute extensionAttribute1 set to a specific value? I'm able to set it up so it emails on every account but we will have several accounts expiring on the same day. There will be a lot of emails going at once.

by (330 points)

1 Answer

0 votes
by (284k points)

Hello,

As we understand, you need a single email containing all the users that meet the criteria. In this case, it can only be done using a report. You can use the built-in report, Soon-to-expire passwords (by default located in container Reports\All Reports\Users\Passwords). For details on how to schedule reports, see https://www.adaxes.com/help/ScheduleReports. For the report to take into account the required value of extensionAttribute1, replace this line in the report script

$criteria = New-AdmCriteria "user" {(mailboxType -ne "shared") -and (changePasswordAtLogon -ne $True) -and (passwordNeverExpires -ne $True) -and (smartCardRequired -ne $True)}

with the below one

$criteria = New-AdmCriteria "user" {(extensionAttribute1 -eq "My value") -and (mailboxType -ne "shared") -and (changePasswordAtLogon -ne $True) -and (passwordNeverExpires -ne $True) -and (smartCardRequired -ne $True)}
0

Is it possible to put the report data into the body of an email instead of an attachment?

0

Hello,

Yes, it is possible. On the Document step of the scheduling wizard, select HTML. image.png On the Delivery step, select options Send by email and Embed document into the email body. image.png

Related questions

0 votes
1 answer

I'm using the default builtin password expiration notifier. I have it set to run everyday at 8AM, to check if the password will expire in <7 days, and send an ... saw the task had been running for nearly 24 hours, no completion. What is happening here?

asked Sep 12, 2023 by keecit (60 points)
0 votes
1 answer

I've enabled the "Account Expiration Notifier" builtin scheduled tasks. Currently, I'm testing it so I have "If account will expire in less than 300 days", it will send an ... SMTP settings are correct, seeing as I get the test send. What's going on here?

asked Jan 4, 2021 by keecit (60 points)
0 votes
1 answer

We are using the Builtin scheduled task to let our domain users know when their password will expire in the next 2 weeks. As in ... If password will expire in less than ... problem (like wjpatterson, above) the Password section has a N/A in it. Regards, Jim

asked May 13, 2014 by jfarley (20 points)
0 votes
1 answer

Right now I have a scheduled task that runs on all user accounts and sends and HTML email to users when their password will expire. The problem with this method is that ... to look for users with expiring passwords. I could use some help sorting that out.

asked Jul 10, 2020 by dtb147 (290 points)
0 votes
1 answer

I want to send reminder emails that a users password is going to expire when their password is going to expire in 14, 7, 3, and 1 days. I have setup 4 ... a daily PowerShell script, where I do the actual password expiration check in the PowerShell script?

asked Aug 9, 2017 by HDClown (220 points)
3,504 questions
3,196 answers
8,148 comments
547,418 users