Originally posted by suityou01
View Post
using (DirectorySearcher ds = new DirectorySearcher(_directoryEntry, "(&(objectClass=user)(objectCategory=person))"))
{
try
{
ds.PageSize = 1000;
/*core data*/
ds.PropertiesToLoad.Add("sAMAccountName");
ds.PropertiesToLoad.Add("mail");
ds.PropertiesToLoad.Add("objectSid");
ds.PropertiesToLoad.Add("servicePrincipalName");




(&(objectClass=user)(objectCategory=person)(mail=*))






Comment