SOLVED

Microsoft 365 Password Expiry email Notification

%3CLINGO-SUB%20id%3D%22lingo-sub-2328252%22%20slang%3D%22en-US%22%3EMicrosoft%20365%20Password%20Expiry%20email%20Notification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328252%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22x-hidden-focus%22%3EHi%20Community%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20tenant%20where%20password%20expiry%20policy%20is%20set%20to%20notify%20users%2014%20days%20before%20expiry.%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3EMy%20understanding%20is%20that%20they%20receive%20a%20pop-up%2014%20days%20before%20expiry%20with%20a%20link%20to%20change%20the%20password.%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EIs%20it%20possible%20have%20a%20script%20that%20sends%20an%20email%20notification%20instead%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EFatjon%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2328252%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328864%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20365%20Password%20Expiry%20email%20Notification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328864%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1046136%22%20target%3D%22_blank%22%3E%40loglifatjon%3C%2FA%3E%2C%3CBR%20%2F%3Emaybe%20these%202%20scripts%20help%20you%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fcore-infrastructure-and-security%2Fhow-to-setup-a-password-expiration-notification-email-solution%2Fba-p%2F257836%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fcore-infrastructure-and-security%2Fhow-to-setup-a-password-expiration-notification-email-solution%2Fba-p%2F257836%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdeployhappiness.com%2Femail-users-a-password-expiration-notification%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeployhappiness.com%2Femail-users-a-password-expiration-notification%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%20Schnittlauch%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2331370%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20365%20Password%20Expiry%20email%20Notification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2331370%22%20slang%3D%22en-US%22%3EThank%20you%2C%20just%20what%20I%20was%20looking%20for!%3C%2FLINGO-BODY%3E
New Contributor

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

5 Replies
Thank you, just what I was looking for!

@loglifatjon

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

Thanks Steve, this is very very helpful!
Insane Job!