Command-
- Mail Received
Get-TransportServer | get-messagetrackinglog -resultsize unlimited -Recipients "Himanshu@himanshu.com" -EventID "RECEIVE" -Start " feb 19, 2019 12:00:00 AM" -End " Feb 25, 2019 11:59:00 PM" | Select Sender,{$_.Recipients},{$_.RecipentStatus},MessageSubject,TimeStamp,EventId,TotalBytes | Export-Csv -Path D:\Details.csv
- Mail Sent
Get-TransportServer | get-messagetrackinglog -resultsize unlimited -Sender "Himanshu@himanshu.com" -EventID "SEND" -Start "feb 19, 2019 12:00:00 AM" -End "Feb 25, 2019 11:59:00 PM" | Select Sender,{$_.Recipients},{$_.RecipentStatus},MessageSubject,TimeStamp,EventId,TotalBytes, | Export-Csv -Path D:\Himanshu.csv
No comments:
Post a Comment