Microsoft Active Directory | How to find locked out users via PowerShell

Today I was looking for an easy way to find out if there were users locked out. After some looking around i found the following command in the “Active Directory Module for Windows Powershell”
Go to Start > All Programs > Administrative Tools > “Active Directory Module for Windows PowerShell”

Run this application as Administrator.
You get a warning ( click on Yes )

A new windows will appear.

Type in the command line: Search-ADAccount -LockedOut

Press Enter when you have typed in the command.
If there is an user locked out than you will see the following information. Like below

If there is no locked out users than there will be no information displayed.

Leave a Reply

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