Get the distribution list owner from Active Directory

Hi,

How can I get the owner of the Outlook  distribution list? I've already get all the members of the a given mail group thru DirectorySearcher but there is no owner property available in DirectoryEntry Class. Can I use the Microsoft.Office.Interop.Outlook COM obj to get the owner of the group (group name that I retrieve from DirectorySearcher)?  Please advise.

Thanks.

July 16th, 2015 3:06pm

Are you talking about the "ManagedBY" entry? You can do this with the following command..

$DGs = Get-DistributionGroup

ForEach ($Group in $DGs) {

Get-DistributionGroup -Identity $Group | select $Group.Name, ManagedBy

}

Will.

Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 3:57pm

Thanks Will. Yes, I'm referring to "ManagedBy" entry. 

But "managedBy" is not a property of DirectoryEntry using C#.

July 16th, 2015 4:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics