• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • Last Modified:

how to filter inactive users in active directory (2008)

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
DonJem
Asked:
DonJem
  • 2
1 Solution
 
Joseph DalyCommented:
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
 
DonJemAuthor Commented:
I'm going to wait on this one. i'll let you know once I try it
0
 
Joseph DalyCommented:
No problem let me know if you need any assistance.
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now