Top "Directorysearcher" questions

Use this tag for question related to the DirectorySearcher .Net Framework class.

How can I search users in Active Directory based on surname and first name?

I'm trying to search for users in AD with their surname (sn) and first name (givenName) using DirectorySearcher in .NET. …

c# active-directory directorysearcher
How can I find what Organizational Units a computer is part of? ( Active Directory C# )

I want to find the most specific OU my computer belongs to in C#. I have code that will get …

c# active-directory ou directorysearcher
list all local users using directory services

The following method I created seem does not work. An error always happens on foreach loop. NotSupportedException was unhandled...The …

c# .net directoryservices adsi directorysearcher
ActiveDirectory DirectorySearcher: why is FindOne() slower than FindAll() and why are properties omitted?

I have a loop that retrieves some info from ActiveDirectory. It turned out to be a big performance bottleneck. This …

c# .net active-directory ldap directorysearcher
LDAP Connecting with IP address and Port Number

The company I work for has a product that uses Active Directory to enable our product's security features using a …

c# active-directory ldap directoryentry directorysearcher
Active Directory: The server could not be contacted using DirectorySearcher

I keep getting the error The server could not be contacted. When i'm trying to run my code: I've searched …

c# active-directory ldap windows-authentication directorysearcher