简体   繁体   English

如何使用C#设置Active Directory的密码有效期限

[英]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.

相关问题 如何使用 C# .NET 跨域设置/更改 Active Directory 用户密码? - How to set/change Active Directory user password across domains using C# .NET? 从C#.net在活动目录中使用临时密码登录时如何设置强制重置密码 - How to set force reset password when login with temporary password in active directory from c# .net 如何使用C#以编程方式向Active Directory中的用户设置电子邮件 - How to set email to a user in Active Directory programatically using c# 使用 C# 创建新的 Active Directory 时无法设置密码 - Can not set password when create new Active Directory with C# 如何设置 Active Directory 用户的密码到期日期 - How to set password expiration date of Active Directory user 使用C#检测用户是否必须在Active Directory中重置密码 - Detect if User Must Reset Password In Active Directory Using C# 在 C# 中创建密码为 Active Directory 的用户 - Creating Active Directory user with password in C# 如何使用目录服务(C#)在Active Directory中设置gecos属性 - How to set gecos attribute in Active Directory using directory services(C#) 使用 C# 在 Azure 存储中设置 blob 的到期日期或在 X 天后自动删除 blob? - Set the expiry date of a blob or auto delete the blob after X number of days in Azure Storage using C#? Oracle 密码到期和宽限期处理使用 C# 客户端 - Oracle password expiry and grace period handling using C# client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM