Forum Discussion

ripclaw's avatar
ripclaw
Copper Contributor
Aug 19, 2021

Password policy verification /verification politique de mots de passe

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

  • 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.
  • pvanberlo's avatar
    pvanberlo
    Steel Contributor
    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.

Resources