[英]How to set password expiry date of Active Directory using C#
Can any one help me with setting the password expiry date in AD using C#. 谁能帮助我使用C#在AD中设置密码到期日期。
I have come across some articles in msdn and stack overflow which show how to set the password expiry dates. 我在msdn和堆栈溢出中遇到了一些文章,这些文章显示了如何设置密码的到期日期。 But I have noticed that these methods or snippets are valid till Server 2003.
但是我注意到这些方法或代码段在Server 2003之前有效。
Referred Links: 推荐链接:
Active Directory user password expiration date .NET/OU Group Policy Active Directory用户密码到期日期.NET / OU组策略
http://support.microsoft.com/kb/323750 http://support.microsoft.com/kb/323750
I am having server 2008. 我正在使用Server 2008。
Thanks in advance. 提前致谢。
如果您要这样做,则无法为给定用户设置密码到期时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.