Solved

how to filter inactive users in active directory (2008)

Posted on 2010-11-15
3
686 Views
Last Modified: 2012-05-10
I can export a list of users and with the "filter options" filter out certain emails or something. I want to know how to filter out inactive users, so I see only active users.

The goal is to export a list of users in a particular OU whose acount are both active and contain an email address with a particular domain.
0
Comment
Question by:DonJem
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
ID: 34141383
If I understand your question correctly then you should be able to utilize oldcmp by joeware to complete this task. This is a free tool to deal with inactive AD accounts.

http://www.joeware.net/freetools/tools/oldcmp/index.htm

Basically you would use code similar to the one below with your data specific to your domain added.
oldcmp -report -users -age {#days} -llts -b {Base DN of OU to search} -f {ldapfilter for email}

Open in new window

0
 

Author Comment

by:DonJem
ID: 34166861
I'm going to wait on this one. i'll let you know once I try it
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 34166886
No problem let me know if you need any assistance.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now