Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DirectoryEntry dirEnt = new DirectoryEntry();
- using (DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)"))
- {
- srch.PageSize = 1000;
- SearchResultCollection results = srch.FindAll();
- }
Add Comment
Please, Sign In to add comment