Anonymous
Report on AD Accounts?
0
PEOPLE
Is there a way of running a report in Active Directory to see all the User Accounts created for 2008? I can't seem to find an option to do this Thanks in advance
Replies
You could create a custom query in ADUC, or I'd suggest using PowerShell. Using the new R2 AD cmdlets you could do something like this:
[datetime]$from="1/1/2009"
[datetime]$unto="1/1/2010"
get-aduser -filter {WhenCreated -gt $from -AND WhenCreated -lt $unto} -Properties WhenCreated | Sort WhenCreated | Select DistinguishedName,Name,WhenCreated
Or you could use the free Quest cmdlets:
get-qaduser -SizeLimit 0 -CreatedAfter "1/1/2009" -CreatedBefore "1/1/2010" | Sort WhenCreated | Select DN,Name,WhenCreated
An advantage of using PowerShell is that you can do all sorts of things with this information. From saving it to a file, exporting to CSV or XML, creating an HTML report and much more.
You can easily pull this information from an ADO query scoped at the directory where the users reside. Look here for more info
http://www.rlmueller.net/ADOSearchTips.htm
ex:
"(&(objectCategory=person)(objectClass=user)(whenCreated>=20080101000000.0Z))"









