Tags

,


How to find the Distribution Group details which are contain External Partner as member of (i.e: @live.com). Use the below command to achieve that.

foreach ($group in (Get-DistributionGroup -Filter {name -like “*”})) {Get-DistributionGroupMember $group | ?{$_.emailaddresses -like “*@live.com”} | Select @{Label=”Group”;Expression={$Group.Name}},@{Label=”User”;Expression={$_.Name}},SamAccountName, emailaddresses}

Advertisements