How do I set a Group Policy's Password Policy in C#
Posted
by user343304
on Stack Overflow
See other posts from Stack Overflow
or by user343304
Published on 2010-05-17T17:43:31Z
Indexed on
2010/05/17
17:51 UTC
Read the original article
Hit count: 1005
I am trying to retrieve a group policy from a Windows Server 2008 Active Directory and change the minimum password age, maximum password age, and minimum password length in a C# application.
Is there a way to do this? So far I have only found out how to create new Group Policy objects using Interop.GPMGMTLib (gpmgmt.dll), yet I haven't figured out how to change the policy's password rules and I am not sure if there is an easier way.
© Stack Overflow or respective owner