Sending custom “password is about to expire” notifications with PowerShell
Set yourself in advance how many days users need to be reminded of password expiry see how to notify users via email when their passwords expire – Automate Password Change Notification Through Email