¡@

Home 

c# Programming Glossary: searchresultcollection

How to determine if user account is enabled or disabled

http://stackoverflow.com/questions/2005637/how-to-determine-if-user-account-is-enabled-or-disabled

directoryRoot objectClass User objectCategory Person SearchResultCollection results searcher.FindAll foreach SearchResult result in results..

WMI to reboot remote machine

http://stackoverflow.com/questions/2921905/wmi-to-reboot-remote-machine

have machine name not IPaddress. EDIT I currently have SearchResultCollection allMachinesCollected machineSearch.FindAll Methods myMethods..

ASP.NET How to get List of Groups in Active Directory

http://stackoverflow.com/questions/323536/asp-net-how-to-get-list-of-groups-in-active-directory

objSearchADAM default DirectorySearcher Search object. SearchResultCollection objSearchResults default SearchResultCollection Results collection... object. SearchResultCollection objSearchResults default SearchResultCollection Results collection. string strPath null Binding path. List string.. DirectorySearcher ' Search object. Dim objSearchResults As SearchResultCollection ' Results collection. Dim strPath As String ' Binding path...

c# Active Directory Services findAll() returns only 1000 entries [duplicate]

http://stackoverflow.com/questions/3488394/c-sharp-active-directory-services-findall-returns-only-1000-entries

like you should also have a using directive around the SearchResultCollection using SearchResultCollection results ds.FindAll foreach SearchResult.. a using directive around the SearchResultCollection using SearchResultCollection results ds.FindAll foreach SearchResult sr in results ... ..

C# Active Directory: Get domain name of user?

http://stackoverflow.com/questions/4249139/c-sharp-active-directory-get-domain-name-of-user

searcher.Filter nCName firstPart nETBIOSName try SearchResultCollection rs searcher.FindAll if rs null domain GetProperty rs 0 nETBIOSName.. objectClass user sAMAccountName 0 userName try SearchResultCollection results searcher.FindAll If the user cannot be found then let's.. nETBIOSName searcher.PropertiesToLoad.Add cn SearchResultCollection results null try results searcher.FindAll if results null..

Get List of Users From Active Directory In A Given AD Group

http://stackoverflow.com/questions/513124/get-list-of-users-from-active-directory-in-a-given-ad-group

string.Format objectClass user department 0 Department SearchResultCollection src LdapSearcher.FindAll What would the filter need to look..

Using C#, how do you check if a computer account is disabled in active directory?

http://stackoverflow.com/questions/591681/using-c-how-do-you-check-if-a-computer-account-is-disabled-in-active-directory

searcher.PropertiesToLoad.Add userAccountControl using SearchResultCollection results searcher.FindAll foreach SearchResult result in results..

Find Recursive Group Membership (Active Directory) using C#

http://stackoverflow.com/questions/6252819/find-recursive-group-membership-active-directory-using-c-sharp

SearchScope.Subtree dsLookFor.PropertiesToLoad.Add cn SearchResultCollection srcGroups dsLookFor.FindAll Just to know if user is explicitly.. SearchScope.Base dsLookForAMermber.PropertiesToLoad.Add cn SearchResultCollection memberInGroup dsLookForAMermber.FindAll Console.WriteLine Find..

“A referral was returned from the server” exception when accessing AD from C#

http://stackoverflow.com/questions/6954170/a-referral-was-returned-from-the-server-exception-when-accessing-ad-from-c-sha

userPrincipalName ds.Filter objectClass user SearchResultCollection results ds.FindAll foreach SearchResult result in results Console.WriteLine.. result.Properties userPrincipalName 0 .ToString On the SearchResultCollection results ds.FindAll line I get an exception A referral was returned..

Can I get more than 1000 records from a DirectorySearcher in Asp.Net?

http://stackoverflow.com/questions/90652/can-i-get-more-than-1000-records-from-a-directorysearcher-in-asp-net

As Biri pointed out it's important to dispose the SearchResultCollection returned by FindAll otherwise you may have a memory leak as.. to write a wrapper method that automatically disposes the SearchResultCollection. This might look something like the following or could be an.. SearchResult SafeFindAll DirectorySearcher searcher using SearchResultCollection results searcher.FindAll foreach SearchResult result in results..

How can I get DOMAIN\USER from an AD DirectoryEntry?

http://stackoverflow.com/questions/941002/how-can-i-get-domain-user-from-an-ad-directoryentry

improve this question This assumes that results is a SearchResultCollection obtained from a DirectorySearcher but you should be able to..