May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.
Public Sub FillDropdown() Dim ldapPath As String = "LDAP://CN=GroupName,DC=Departments,DC=ad,DC=domain,DC=com" Dim de As New DirectoryEntry(ldapPath) Dim ds As New DirectorySearcher(de) ds.PageSize = 1000 ds.Filter = "(objectCategory=User)" Dim colUsers As ArrayList colUsers = New ArrayList Dim result As SearchResult For Each result In ds.FindAll() colUsers.Add(result.Properties("cn")(0)) Next result colUsers.Sort() DropDownList1.DataSource = colUsers DropDownList1.DataBind() de.Dispose() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Domain .local to .co.uk||2||54|
|How to add an extra attribute/tab into Active directory Users||5||32|
|Powershell script to disallow login hours and change default login to test pc||3||11|
Join the community of 500,000 technology professionals and ask your questions.