Show Nested memberof When you you have Hide members on Distribution list

July 15, 2018

Hi When you have exchange Distribution list that the Members Remark As "hide" , you can list the member of the Distribution list from Active Directory : $searcher = New-Object System.DirectoryServices.DirectorySearcher $objdomain = New-Object System.DirectoryServices.DirectoryEntry $searcher.SearchRoot= $objdomain $searcher.Filter="(&(objectClass=Person)(objectCategory=User)(memberOf:1.2.840.113556.1.4.1941:=groupDN))" $searcher.pagesize=1000 $col=$searcher.FindAll() $result=$null foreach ($user in $col) { $user.Properties.samaccountname } Sagi U. & SHMUEL H.
no comments