Posts Tagged ‘active directory’

Active Directory Password Expiration Email Notifier in C#

Thursday, April 3rd, 2008

At work we have our passwords expire every 90 days, but some people are off-site and do not get the friendly Windows log-on reminders that your password is expiring in, say, 14 days. So my boss thought, “Hey, it would be cool if AD could send out a email to everyone saying their password will expire! Sam, make one!”

So after googling around, I found some posts at CodeProject and some other places I can’t remember, and made a little Windows console app that reads in an XML file for the settings (AD server, email, etc) and sends an email to those whose passwords are expiring in the given number of days. And here is the C# Studio Express Solution…

ad_passexp_notifier.zip