Oct 23 2018 10:52 AM
Hi experts i am using exchange hybrid environment.
Will the below syntax work for me, i want to pull all emails with subjects, timestamp received on the users mailbox.
Exchange Onprem
Get-MailboxServer | get-messagetrackinglog -recipients myuser@mydomain.com -start "01/01/2018 00:00" -end "10/20/2018 23:59" | select MessageSubject,Timestamp,Eventid,Source,Sender,Recipients,SourceContext,MessageId,ServerHostname | Export-Csv C:\OnpremReport.csv -No
TypeInformation
ExchangeOnline
Get-MessageTrace -recipient myuser@mydomain.com -start "01/01/2018 00:00" -end "10/20/2018 23:59"| select Subject,Received,SenderAddress,RecipientAddress,MessageID,Status | Export-Csv C:\clouduser.csv -NoTypeInformation