Managing Distribution Lists with External Contacts
Hello All.. We have a request to audit our distribution lists to provide a list whose members may contain Active Directory Contacts with an external email address assigned to it This is due to compliance to ensure internal emails sent to a distribution list are not send externally if the contact was added in error. Does anyone know of a query that can be run to report which distribution lists have contacts as their members and also have the ability to exempt certain "known" distribution lists from the results for accuracy.
September 22nd, 2011 1:57pm

Hello, This powershell script will print out all distribution groups that have contacts as members. Bill foreach($dg in get-group -resultsize unlimited ) { foreach ($member in $dg.members) { $recipient = ($member | get-recipient -erroraction silentlycontinue) if ($recipient.RecipientType -eq "MailContact") { Write-Host "$($dg.Name) Has external Members" break } } }
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2011 12:44pm

this is perfect. Many thanks
September 26th, 2011 6:00am

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

Other recent topics Other recent topics