Project

PSPasswordExpiryNotifications

Following PowerShell Module provides different approach to scheduling password notifications for expiring Active Directory based accounts. While most of the scripts require knowledge on HTML... this one is just one config file and a bit of tingling around with texts. Whether this is good or bad it's up to you to decide. I do plan to add an option to use external HTML template if there will be requests for that.

Stars41
Forks15
Open issues5
PowerShell Gallery downloads4175
Releasev1.6.9
Language: PowerShell Updated: 2026-02-14T21:19:17.0000000+00:00

Curated Examples

Review expiring passwords

Use PSPasswordExpiryNotifications to review users with expiring passwords.

This pattern is useful as the first validation step before building reminder templates or delivery rules.

It is adapted from Example/ListUsers.ps1.

Example

Import-Module PSPasswordExpiryNotifications

Find-PasswordExpiryCheck |
    Where-Object { $_.PasswordNeverExpires -eq $false } |
    Sort-Object -Property PasswordLastSet |
    Format-Table DisplayName, UserPrincipalName, DateExpiry, DaysToExpire, PasswordLastSet -AutoSize

What this demonstrates

  • reading password expiry data
  • excluding accounts with non-expiring passwords
  • sorting the output for operational review

Source