Powershell: Enumerating a LDAP Group with a large (>1500) number of users

Okay I searched though a lot of PowerShell Blogs for the answer to this but couldn’t find a solution that really worked. I finally just took the C# solution from a MSDN article (http://msdn.microsoft.com/en-us/library/ms180907(VS.85).aspx) and converted it to PowerShell. Hopefully this is helpful to someone! # $LDAPGroup is in the format cn=TestGroup,dc=contoso,dc=com $container = ‘LDAP://’ + $LDAPGroup$member…

1