Top "Active-directory" questions

Active Directory (AD) is a distributed directory service created by Microsoft.

How to get a user's e-mail address from Active Directory?

I am trying to get a user's email address in AD without success. String account = userAccount.Replace(@"Domain\", ""); DirectoryEntry entry = …

c# active-directory
Get members of Active Directory Group and check if they are enabled or disabled

What is the fastest way to get a list of all members/users in a given AD group and determine …

c# active-directory
How do I get the first name and last name of the logged in Windows user?

How I can get my first name last name with c# in my system (logging in windows with Active Directory …

c# active-directory
Listing All Active Directory Groups

The following code lists some, but not all, Active Directory Groups. Why? I am trying to list all security groups, …

c# active-directory ldap active-directory-group
How to connect to Active Directory with Principal Context?

I've been at this for a while and I'm always getting: System.DirectoryServices.AccountManagement.PrincipalServerDownException Which I think means my …

c# active-directory principalcontext
Can I get more than 1000 records from a DirectorySearcher?

I just noticed that the return list for results is limited to 1000. I have more than 1000 groups in my domain (…

c# asp.net active-directory
Get-Aduser -Filter will not accept a variable

I'd like to check if a user account already exists in the system. $SamAc = Read-Host 'What is your username?' $…

powershell active-directory filtering powershell-3.0
Getting current login from Active Directory using C# code

How can I get the current user's login name from Windows Active Directory using C# code?

c# .net active-directory
How to PHP ldap_search() to get user OU if I don't know the OU for base DN

I have an Active-Directory structure where User objects reside in OU for example, IT, Technical, HR, Accounts etc.. I want …

php active-directory ldap
Active Directory COM Exception - An operations error occurred (0x80072020)

I am getting an intermittent COM Exception "An operations error occurred (0x80072020)" (shown below) when I try and query Active …

c# .net exception com active-directory