Jul 05 2017 11:18 PM
Jul 05 2017 11:18 PM
Hello All,
does anybody has any script which search for specific external recipients from DL group members?
for e.g. yahoo.com or gmail.com
Jul 05 2017 11:25 PM
Well you cannot add them directly, you need a matching mail user/mail contact object. So just look for the relevant recipient types and match them against a domain. For example
Get-Recipient | ? {$_.EmailAddresses -like "*gmail.com*"}
Or for a given DG:
Get-DistributionGroupMember DG | ? {$_.EmailAddresses -like "*outlook.com*"}