KarlGoddard Posted February 15, 2006 Posted February 15, 2006 Hi I want to pull a list of users from from an OU in AD based on the date the user object was created. I've had a look at creating a new query but I can't see a date created / modified field with which to query. I'm sure it's possible, but I can't seem to see how! Any help would be great Thanks Karl
webman Posted February 15, 2006 Posted February 15, 2006 "createTimeStamp" and "modifyTimeStamp"? You can run adsiedit.msc on the server to check these out.
Geoff Posted February 15, 2006 Posted February 15, 2006 With LDAP you can pull out the whenChanged and whenCreated attribute. For example (net command on Linux..): titan ~ # net ads dn 'CN=administrator,CN=Users,DC=carrhill,DC=lancs,DC=sch,DC=uk' -U Administrator | grep when Administrator's password: whenCreated: 20060205132743.0Z whenChanged: 20060214164856.0Z Format is YYYYMMDDHHMMSS
KarlGoddard Posted February 15, 2006 Author Posted February 15, 2006 Cheers guys I ended up doing the following (&(objectCategory=person)(objectClass=user)(&(whenCreated>=20060120000000.0Z))) which works great Thanks for your replies! Karl
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now