Saving emails to CSV within Exchange Server
We need to save the header and body of incoming emails within Exchange 2010 for a particular user to separate CSV files.  Presumably a Powershell script could do this, but we have no PS experience.  Can anyone please suggest a methodology and/or relevant commands?
June 18th, 2014 5:02am

You're not going to get the body of messages with any PowerShell command since that's not saved anywhere.  If you have subject logging enabled for message tracking, you can get the subjects.  For that, you could look at Microsoft's free Log Parser tool or the third-party Quest MessageStats, which has canned reports that might just meet your needs.

Free Windows Admin Tool Kit Click here and download it now
June 18th, 2014 12:09pm

Hi,

I recommend you use the following cmdlet to enable Message Tracking Log Subject at first.

Set-TransportServer cashub01.nourd.com -MessageTrackingLogSubjectLoggingEnabled $true

And then use the cmdlet below to export the message subject to a csv file. As Ed said, I'm afraid that there is no built-in feature to export the message body.

Get-MessageTrackingLog -Recipients "user@domain.com" | Export-Csv c:\test.csv

Hope it helps.

Best regards,

June 19th, 2014 4:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics