First one: Get-TransportService | Get-MessageTrackingLog -Start 08/25/2020 -End 08/26/2020 -ResultSize unlimited|?{$_. sender -like "*domain.com*" } | select timestamp, sender, @{n="Recipients"; e={$_.Recipients}}, Messagesubject | Export -Csv -NoTypeInformation tracking.csv Second one: Get-TransportService | Get-MessageTrackingLog -Start 08/25/2020 -End 08/26/2020 -ResultSize unlimited|?{$_. recipients -like "*domain.com*" } | select timestamp, sender, @{n="Recipients"; e={$_.Recipients}}, Messagesubject | Export -Csv -NoTypeInformation tracking.csv