Forum Discussion
loglifatjon
May 05, 2021Copper Contributor
Microsoft 365 Password Expiry email Notification
Hi Community, I have a tenant where password expiry policy is set to notify users 14 days before expiry. My understanding is that they receive a pop-up 14 days before expiry with a link to cha...
- May 05, 2021Hi loglifatjon,
maybe these 2 scripts help you
https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/how-to-setup-a-password-expiration-notification-email-solution/ba-p/257836
https://deployhappiness.com/email-users-a-password-expiration-notification/
Best regards Schnittlauch
SteveMacNZ
May 06, 2021Iron Contributor
created this 4-5years ago for one of my clients, where we approached this slightly differently and rather than have just a single email being sent at the trigger time that the user would get an email every day until their password expired, advising them their password was going to expire in x days.
Also included logging of accounts due to expire into a CSV file. script uses parameters to allow setting of AD search base, Reports path, Days, from, subject and smtp server directly in the task scheduler
uses the logging functions by Luca Sturlese (which could be replaced with transcription logging) and Send-MailMessage which could be replaced to send emails via ExchangeOnline
Schnittlauch
May 08, 2021Steel Contributor
Insane Job!