The Microsoft Office 365 Sign-In Assistant application will display a notification bubble in the Windows tray when the Office 365 password is about to expire.
The default duration of the notification bubble is five seconds. If you need to modify the duration (e.g. to increase the chance of the user noticing the notification) you can add a key to the registry or change a setting in the Control Panel.
Method 1: Add a key to the Registry
Method 2: Change setting in Control Panel
In this article the concept is very clear and helpful. It provides good information to active directory password expiration email notification but I used this automate tool (
http://www.lepide.com/user-password-expiration-reminder/ ) that allows to notify users via Email when their password expire and schedule automatically notify users through Email about their
password expiry and get the status reports in HTML , CSV, and in PDF format on users whose AD password is soon to expire .