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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s