Find Active Directory Accounts: Locked, Expired, Expired Passwords

This PowerShell script will give you some options to search Active Directory users:

  1. Report Locked Accounts
  2. Report Expired Accounts
  3. Report Expired Passwords
  4. Report Enabled accounts that have no recent activity (default 120 days)
  5. Report All Accounts

By default, the fields related to an account’s ability to login are included:

User Security Fields

User Status from Active Directory



 

5 thoughts on “Find Active Directory Accounts: Locked, Expired, Expired Passwords

Leave a Reply

Your email address will not be published.