Power Shell command required to find active directory users

Hi,

I need a Power Shell command to retrieve a list of Active Directory Users whose accounts were created in 2012.


Thank you

Adam
adamtraskAsked:
Who is Participating?
 
oBdACommented:
Get-ADUser -Filter * -Properties whenCreated | ? {$_.whenCreated.Year -eq 2012}

Open in new window

0
 
Mahmoud SabryCommented:
you can use command prompt also
dsquery * dc=example,dc=net -filter "(&(objectCategory=Person)(objectClass=User)(whenCreated>=20061001000000.0Z))"

where 20061001000000 = date (2006 - month 10 - day 01 --time ....etc)
0
 
adamtraskAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.