I take you have already seen this doc, correct?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/examp
le_code_to_retrieve_changes_using_usnchanged.asp 

One reason I can think of that would explain why no results is that there
are no changes that meet that criteria. Have you checked to see that the
uSNChanged Value of some test user object is greater than your
highestcommittedusn value??

Al

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mikael H�kansson
Sent: Tuesday, March 15, 2005 7:22 AM
To: [email protected]
Subject: [ActiveDir] Retrieving changes using the uSNChanged property

Hi

I�m trying to retrieve only changes from active directory by using the
uSNChanged property in my query.

However, even if a manually change an object and verify that the uSNChanged
is changed, I still don�t get any results back from my query.

Sample query:

"(&(objectClass=user)(objectCategory=person)(uSNChanged>=value))"
where value is taken from the highestCommittedUSN property of the RootDSE
object the first time the application runs.

Does anyonw know why I�m not getting any results back?
Maybe this cannot be done using the .NET directoryservices??

//Mikael
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to