title: Active directory - ldap attribute createTimeStamp in Windows Server 2008 R2
body: <p>To check how many users were created in the past one year for a particular domain I queried like the following,</p>
  
  <p><strong><code>(&amp;(objectCategory=person)(objectClass=user)(!(sAMAccountType=805306370))(createTimeStamp&gt;=20090831022227.0Z))</code></strong></p>
  
  <p>I have two domain controllers, DC-1 is Windows Server 2008 and DC-2 is Windows Server 2008 R2 and this query works fine with the 2008 Server &amp; I found that there were 1500 new users in the last year, but 2008 R2 Server gives only 64 users. I have made the search for domain level &amp; different OU levels and there is no change in the result count(64) but the users were different. I have also checked with other Domain DC's and for all other servers it works fine and another 2008 R2 Server alone gave the same result count, 64. I have also confirmed that this is not a replication issue.</p>
  
  <p>Need Help.</p>