I am using VB.NET and searching AD for all users under a certain OU. I user ADUC and it shows 5482 and when I run my progran, under elevated or normal privileges, it only returns 5476. I am missing 6 names. And one of the names is mine that I know is in the OU.
I have tried the following filters:
'objSearchADAM.Filter = "(&(objectCategory=person)(objectClass=user))"
'objSearchADAM.Filter = "(&(objectCategory=User)(objectClass=person))"
'objSearchADAM.Filter = "(&(objectClass=user))"
'objSearchADAM.Filter = "(&(objectClass=person))"
They all return the same number of entries.
Any ideas why I am not seeing all the accounts?
Thanks,
Dave
Dave