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 enabled users only

Use PSPasswordExpiryNotifications to narrow expiry review to enabled accounts.

This pattern is useful when the first report includes disabled or exception accounts that should not be part of reminder planning.

It is adapted from Example/ListUsers.ps1.

Example

Import-Module PSPasswordExpiryNotifications

Find-PasswordExpiryCheck |
    Where-Object {
        $_.Enabled -eq $true -and
        $_.PasswordNeverExpires -eq $false
    } |
    Sort-Object -Property DateExpiry |
    Select-Object DisplayName, UserPrincipalName, DateExpiry, DaysToExpire, Enabled

What this demonstrates

  • narrowing review to enabled users
  • keeping notification planning separate from sending
  • selecting only the columns needed for a service-desk review

Source