SOLVED

Password policy verification /verification politique de mots de passe

Copper Contributor

Hello,

I would like to see if my AD users respect the password policy. I did several searches on the internet and I came across this command line:

Get-ADUserResultantPasswordPolicy

but I would like to do it for ALL users and not one by one.

Cordially

bonjour,

je souhaiterai voir si les utilisateurs de mon AD respect la politique de mot de passe.

j'ai fais plusieurs recherche sur internet et je suis tombé sur cette ligne de commande :

Get-ADUserResultantPasswordPolicy

mais je souhaiterai le faire pour TOUS les utilisateurs et non un par un.

cordialement

2 Replies
best response confirmed by ripclaw (Copper Contributor)
Solution
You can pipe PowerShell cmdlets so this is executed for all or a subset of users in AD:

Get-ADUser -Filter * | Get-ADUserResultantPasswordPolicy

Depending on how many users, this might take some time to finish running.
1 best response

Accepted Solutions
best response confirmed by ripclaw (Copper Contributor)
Solution
You can pipe PowerShell cmdlets so this is executed for all or a subset of users in AD:

Get-ADUser -Filter * | Get-ADUserResultantPasswordPolicy

Depending on how many users, this might take some time to finish running.

View solution in original post