I need to get a list of outbound email addresses from our Exchange 2010. I have run the cmdlet: Get-MessageTrackingLog -ResultSize Unlimited -Start "01/12/2015" -End "02/09/2016" | select-object {$_.Recipients} | export-csv C:\temp\ExchangeLogResults.txt
I end up with a large number of email addresses in quotations mostly ones from our domain name. Is there a way to not include any addresses from a domain in the log results file? Also, is there anything that I might add to it that would result in a more clean text file? I guess I could just bring it into Excel to clean it up but why do that if you can do it with one command?
Thanks,
Mark