lithnet/ad-password-protection

Edit group policies any programmatic way

MakaronniyMonstr opened this issue · 3 comments

Does any programmatic way exists to change lithnet password policies?
Powershell, c#, any way.

Hi @MakaronniyMonstr

The policies are set in the registry of each domain controller, usually via group policy.

If you don't want to set them by group policy, you can set them directly in the registry. A very raw list of the key names and locations are here.

You'd store them under HKLM\SOFTWARE\Lithnet\PasswordFilter\default

https://github.com/lithnet/ad-password-protection/blob/master/src/PasswordFilter/registry.h

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.

Thx. This works, but pay attention that you use “Global Policy Editor” instead of “Local policy editor”.