Comments on: SOLVED: How to Determine if a Distribution List Is Being Used in Exchange https://www.urtech.ca/2015/09/solved-how-to-determine-if-a-distribution-list-is-being-used-in-exchange/ Technology Doesn't Stop & Neither Does URTech.ca Tue, 10 Mar 2020 16:38:15 +0000 hourly 1 By: Tim Carpenter https://www.urtech.ca/2015/09/solved-how-to-determine-if-a-distribution-list-is-being-used-in-exchange/comment-page-1/#comment-236836 Tue, 10 Mar 2020 16:38:15 +0000 http://www.urtech.ca/?p=5903#comment-236836 Thanks for the help.. Changed it a bit and got an excel sheet..

[PS] C:\Windows\system32>Get-MessageTrackingLog -Start 02/09/2020 -ResultSize 99999 -EventID Expand | Select-Object Timestamp,Sender,RelatedRecipientAddress,MessageSubject | export-csv d:\test.csv

]]>
By: Matt Straka https://www.urtech.ca/2015/09/solved-how-to-determine-if-a-distribution-list-is-being-used-in-exchange/comment-page-1/#comment-236531 Tue, 24 Sep 2019 14:44:57 +0000 http://www.urtech.ca/?p=5903#comment-236531 In case anyone runs across this article in the future, I found a slight error with the above code. If you are looking for the count of emails to a distribution list, you’ll want to narrow the search down to a specfic eventid. The above code will report back with a number much higher than is correct because the Tracking Log has entries for each step in the mail flow process (e.g. TRANSFER, SEND, DELIVER). A better solution would be the follow:

Get-MessageTrackingLog -start “08/01/2015 12:00:00” -End “09/01/2015 12:00:00” -Recipients “imatthews@arcis.com” -ResultSize 99999 | Where EventId -eq ‘DELIVER’ | Measure-Object

]]>