Forum Discussion
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 change the password.
Is it possible have a script that sends an email notification instead?
Thanks in advance,
Fatjon
- Hi 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
- SteveMacNZIron 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
- loglifatjonCopper ContributorThanks Steve, this is very very helpful!
- SchnittlauchSteel ContributorInsane Job!
- SchnittlauchSteel ContributorHi 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- loglifatjonCopper ContributorThank you, just what I was looking for!
- MonkeyBoy2112Copper ContributorAny solution for Cloud Only users? (No Active Directory/AAD Connect in place)
Would like to send an email to users before Password expires.