If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.
DomainName="ABC.COM"; DirectoryEntry ADSEntry = new DirectoryEntry("LDAP://" + DomainName); DirectorySearcher mySearcher = new DirectorySearcher(ADSEntry); mySearcher.Filter = "(&(objectCategory=user)(name=*))"; mySearcher.PropertiesToLoad.Add("Name"); mySearcher.PropertiesToLoad.Add("SAMAccountName"); mySearcher.PropertiesToLoad.Add("mail"); mySearcher.Sort = new SortOption("name", SortDirection.Ascending); SearchResultCollection src = mySearcher.FindAll(); // What should i do next......
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.