Password-Expiration-Notifications.ps1 is a powerShell script designed to be run on a schedule to automatically email Active Directory users of soon-to-expire and recently-expired passwords.
This version is a highly modified fork of the original v1.4 by Robert Pearman from https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27. Pearman's 2.x version was completely re-written.
New in this version:
- Added Office 365 SMTP - 2-Password-Expiration-Notifications-office365.ps1
- No SMTP Authentication - 1-Password-Expiration-Notifications.ps1
- A SearchBase is required.
- When logging, the CSV will always be overwritten.
- Accounts with recently-expired passwords can be notified by specifying a "negativedays" value.