# Just different approach to Active Directory Password Notifications

A long time ago I’ve maintained a C# version of Password Expiry reminders. It was working based on HTML templates…

blog

23 May 2018 pl

![Just different approach to Active Directory Password Notifications](/wp-content/uploads/2018/05/img_5b05821cbc2f6.png)

[Zobacz obrazy (3)](#pf-content-image-1-0)

A long time ago I've maintained a C# version of **Password Expiry reminders.** It was working based on **HTML** templates and was quite painful to setup and make sure it's working as expected. Problem with password notifications and setting up something that whole company will potentially get is always risky. You don't want to send 500 emails to all users just because you want to test out if your **HTML** template is actually looking as you want it to. So when Client asked me to enable password notifications for him I've decided that it's time to start with something new. You can of course find a lot of possible options ranging from few lines scripts, to full blow software but I had few priorities of my own. I've made sure the code is published on **GitHub** (so you can give feedback / report issues there) but also it's published as a module on **PowerShellGallery** so highly deployable.

### 💡 Why and how it's different

- No external dependencies on software (something that I would have to maintain or pay for)
- Easy to use, highly configurable configuration file (and execution script at the same time)
- Stop having to rely on HTML, getting the tags right
- Ability to test changes on my email account (to see how users/managers will see it)
- Ability to deliver reports to admins about what happens with users
- Few others…

### 💡 Useful links

- Code is published on [GitHub](https://github.com/EvotecIT/PSPasswordExpiryNotifications)
- Issues should be reported on [GitHub](https://github.com/EvotecIT/PSPasswordExpiryNotifications/issues)
- Code is published as a module on [PowerShellGallery](https://www.powershellgallery.com/packages/PSPasswordExpiryNotifications/)
- Full module description is available at [dedicated module page](https://evotec.xyz/hub/scripts/pspasswordexpirynotifications-powershell-module/)

### 💡 Template for users

This is how the template for users look like. You can customize it to your needs. It's just an example I've done for testing purposes. You can pick your own **links**, **colors**, **style **and data you want to include in email. The looks is mostly up to you with fairly easy config file.

[!\[Przykladowy szablon wiadomosci o wygasaniu hasla wysylanej do uzytkownika z brandingiem, data wygasniecia i linkami do akcji.\](/wp-content/uploads/2018/05/img_5b05821cbc2f6.png)](/wp-content/uploads/2018/05/img_5b05821cbc2f6.png)

### 💡 Template for managers

This is how the template looks for managers. Again it's configurable by you. The only thing that's a bit static is the table in the middle. You can cut out some of the fields from it via config file thou.

[!\[Szablon wiadomosci dla managera o wygasaniu hasla pokazujacy dane pracownika w tabeli podsumowujacej.\](/wp-content/uploads/2018/05/img_5b05816f62291.png)](/wp-content/uploads/2018/05/img_5b05816f62291.png)

### 💡 Template for Admins

Finally this is how the email to admins looks like. There's no template here except for choosing amount of reports you want to get. My idea is that admins don't need formatting. They need data… so there it is..

[!\[Raport e-mail dla administratora z lista kont i terminami wygasania hasel w prostej tabeli.\](/wp-content/uploads/2018/05/img_5b05807017c06.png)](/wp-content/uploads/2018/05/img_5b05807017c06.png)

If you like what you see feel free to visit the dedicated module page **[PSPasswordExpiryNotifications](https://evotec.xyz/hub/scripts/pspasswordexpirynotifications-powershell-module/)**which contains all the know-how for it.

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:F52641A7F02ABBE1AD432C1EDBC7ADFCBCEF642000F7D3F3F262DA25905FEF5C -->
