phillips321 / adaudit

Powershell script to do domain auditing automation
https://www.phillips321.co.uk
374 stars 100 forks source link

Password Complexity returns incorrect result. #15

Closed Derek000 closed 3 years ago

Derek000 commented 3 years ago

Hi

I recently ran the script on a server and noticed it returned an incorrect complexity enable result. We determined that an alternate command fixed the issue.

Instead of using (Get-ADDefaultDomainPasswordPolicy).PasswordComplexity Which may return a blank.

Using the following (Get-ADDefaultDomainPasswordPolicy).ComplexityEnabled Returns “True” as expected.

Thanks for a great tool.

phillips321 commented 3 years ago

Thanks for the pointers with this, I've fixed it in v4.9. Many thanks