Find All Expired Accounts in your Domain via Active Directory PowerShell

2017-12-07T10:37:42+00:00 September 2nd, 2011|PowerShell|

Here’s a quick command you can run in AD PowerShell that will give you a list of all Expired accounts in your domain.

Search-ADAccount -AccountExpired | fl Name , AccountExpirationdate

This will give you a list like below.

Name                                    : User1

AccountExpirationdate         : 30/03/2011 00:00:00

Name                                    : User2

AccountExpirationdate         : 23/04/2011 00:00:00