Reputation: 9551
I am trying to write some code to check the AD password age during a user login and notify them of the 15 remaining days and finally force them to change if it's less than 5 days.
I don't know how to access the days remaining.
The PC's are on a domain. The Policies are set for account password expiration to occur on 90 days. Users are warned 15 days before account password expires. Users can still ignore the message but my application would pester them until they change their password
Upvotes: 2
Views: 3632
Reputation: 23016
Did a quick Google Search and was able to come up with this How to get Password Expiration Date with System.DirectoryServices (C#)
Upvotes: 1