Solved

how to filter inactive users in active directory (2008)

Posted on 2010-11-15
3
690 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
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 update 100 user accounts from an external text file. View in 1080p for best video quality.

729 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