Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Retrieving all users from AD using VB.NET

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>