Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to export list of users created in perticular OU during a duration in active directory

Posted on 2013-01-31
4
Medium Priority
?
273 Views
Last Modified: 2013-04-02
Hi,

Can you please advise How to export list of users created in perticular OU during a duration in active directory ?I need to exctarct list of users created in last month in an OU for one month.It's urgent .Can you please help

Regards,
Rtantra
0
Comment
Question by:Rahul Patil
[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
4 Comments
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 38838848
Do you have any AD auditing software installed?
0
 
LVL 4

Accepted Solution

by:
Rahul Patil earned 0 total points
ID: 38840980
Hi ,

Thanks for the comments but Finally I managed to find the solution.No need of third party tools.I used Microsoft inbuilt utility csvde and below query gave me exactly what I want:

csvde -F example.csv -d "ou=ouname,DC=dcname,DC=com" -r "(&(objectCategory=person)(objectClass=user)(whenCreated>=20130101000000.0Z))"

Note-whencreated-specify date in format yearmonthdate,example.csv is the output filename


Regards,
Rtantra
0
 
LVL 4

Author Comment

by:Rahul Patil
ID: 38854315
The expert comment helped me to find the command andi managed to modify query which yields exact output which i want
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

670 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