Solved

Query AD for list of users created within 2 month.

Posted on 2010-08-23
4
519 Views
Last Modified: 2012-05-10
I need to query my AD forest for all user account created within the 2 months.  There are two child domains and a parent domain, if that is relevant.  I want to be able to sort them in excel so UPN, date would be fine.
0
Comment
Question by:every1isevil2
  • 2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 500 total points
ID: 33501751
I helped with a similar question on the technet forums earlier this year

http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/ca2f8c24-49a4-429a-a686-a99169cc0e00/#74e21dff-106d-4834-b50c-c50dfa9ffa51

Now that one had to do with computers, I'll modify it (adfind method) for you and users

You can get adfind here: http://www.joeware.net/freetools/tools/adfind/index.htm

adfind -default -f "&(objectcategory=person)(objectclass=user)(whencreated>=20100623000000.0Z)" samaccountname givennname sn mail -csv > c:\usersLastyear.csv

I mentioned the blog post in the technet forum but Scott explains whencreated http://blog.scottlowe.org/2006/10/11/finding-recently-created-active-directory-accounts/

Please let me know if that file works ok.

Thanks

Mike
0
 
LVL 4

Author Comment

by:every1isevil2
ID: 33502122
Gonna take a look right now!
0
 
LVL 4

Author Comment

by:every1isevil2
ID: 33502487
Perfect.  Performs exactly what I expected it to do.  Thank you.
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 33505389
Outstanding...glad I was able to help
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
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 tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

708 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

13 Experts available now in Live!

Get 1:1 Help Now