Find All Expired Accounts in your Domain via Active Directory PowerShell

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

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

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.