Solved

how to filter inactive users in active directory (2008)

Posted on 2010-11-15
3
689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CTIOS error on Windows 10 3 56
Windows 10 Policy for Flash 3 53
Active Directory permissions 5 32
Setting up two DCs 4 36
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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.

738 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