Find Locked Active Directory Accounts with PowerShell

In this blog post, I will show you how to find locked out Active Directory users or accounts using Microsoft PowerShell.

Over the years, many tools had been used to find locked Active Directory accounts to help Administrators find users that are locked.

The Powershell Active Directory module makes this operation and task extremely easy.

Active Directory Module

To get a list of locked Active Directory accounts you will need to install the Active Directory PowerShell module.

Search for locked Users

To find locked users in Active Directory, open PowerShell and run the following cmdlet.

Search-ADAccount -LockedOut

You can also, output the command to a CSV file and send it via an email to your service desk team.