Thursday, 6 January 2011

Active Directory accounts created in the last 90 days

The following should filter out the users only.


dsquery * -filter "(&(objectClass=user)(whenCreated>=20101022083730.0Z))"

The date is in UTC format which means YYYYMMDDHHMMSS.0z

No comments: