如何在C#中设置Active Directory的密码到期日期 [英] How to set password expiry date of Active Directory in C#

查看:97
本文介绍了如何在C#中设置Active Directory的密码到期日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我在AD中使用C#设置密码到期日期。



我在msdn和堆栈溢出中遇到过一些文章,说明如何设置密码到期日期。但是我注意到这些方法或片段在Server 2003之前都有效。



我有服务器2008.



提前谢谢。

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.

推荐答案

我认为这是不可能的。您只能将密码标记为已过期。请参阅 AD密码政策 [ ^ ]





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


--Amy


这篇关于如何在C#中设置Active Directory的密码到期日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆