Active Directory: Get all Password Never Expires User Accounts

In every Active Directory Domain I’ve seen so far, I’ve found a lot of User Accounts flagged as password never expires.

The following command gets you a list of all the user accounts whom’s password is set to never expire.

Get-ADUser -Filter {PasswordNeverExpires -eq $true}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.