Click here to Skip to main content
15,946,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can any one help me with setting the password expiry date in AD using C#.

I have come across some articles in msdn and stack overflow which show how to set the password expiry dates. But I have noticed that these methods or snippets are valid till Server 2003.

I am having server 2008.

Thanks in advance.

1 solution

I think this is not possible. You can only mark the password as expired. See AD Password Policy[^]

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900