c#代码获取活动目录的密码复杂性 [英] c# code to get password complexity of active directory

查看:67
本文介绍了c#代码获取活动目录的密码复杂性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在没有secedit.exe命令的情况下使用AD中的c#启用或禁用密码复杂性。

I want to get the password complexity is enabled or disabled using c# in AD without secedit.exe command.

问候,

Siddharth

Siddharth

推荐答案

嗨siddhartha madapakula,

Hi siddhartha madapakula,

感谢您在此发帖。

密码复杂性是组策略。如果您想为组策略执行某些操作,也许您可​​以尝试使用SAM API。

The password complexity is group policy. If you want to do something for group policy, maybe you could try to use SAM API.

请参阅SO中的主题。它显示了一个包含代码示例的详细教程。

Please refer to the thread in SO. it shows a detailed tutorial with code sample.

https://stackoverflow.com/questions/31464835/how-to-programatically-check-the-password-must-meet-complexity-requirements-gr

最诚挚的问候,

Wendy


这篇关于c#代码获取活动目录的密码复杂性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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