Hello,
I wrote this nice PowerShell module, PasswordSolution, in the last couple of months. It has two functionalities:
- send password notifications to users (not today's topic, separate blog post coming)
- analyze active directory passwords (today's topic)
The feature to analyze active directory passwords utilizes the DSInternals PowerShell module and provides HTML-based reports around its output, making it nice and pretty, ready for management.
By running the command (yes, it's a single line, after installing 2 PS Modules):
Show-PasswordQuality -FilePath C:\Temp\PasswordQuality.html -WeakPasswords "Test1", "Test2", "Test3" -Verbose -SeparateDuplicateGroups -AddWorldMap -PassThru
It will create an HTML report and analyze password hashes of all users in Active Directory, find duplicate passwords between user groups, and finds who's using weak passwords provided along with several other problems around passwords hygiene:
- AESKeysMissing
- DESEncryptionOnly
- DelegatableAdmins
- DuplicatePasswordGroups
- DuplicatePasswordUsers
- ClearTextPassword
- LMHash
- EmptyPassword
- WeakPassword
- PasswordNotRequired
- PasswordNeverExpires
- PreAuthNotRequired
- Kerberoastable
- SmartCardUsersWithPassword
While it uses DSInternals for the data, it then prettifies the output by using PSWriteHTML and ActiveDirectory module to make sure it gives you a complete picture
The blog post about it:
- https://evotec.xyz/strengthening-password-security-in-active-directory-a-powershell-powered-approach/
Sources:
- https://github.com/EvotecIT/PasswordSolution
Since I can't attach any pictures, you will need to go for a blog post to see how useful it is. Please make sure to read warnings, as this tool should only be run after approval from Security.