Partilhar via


Exchange Server scripting

* Exchange Server Message Tracking script examples:

Get-MessageTrackingLog –EventID “RECEIVE” –MessageSubject “hello” –Start “01/12/2006 00:00:00” –End “28/12/2006 18:50:00”

Get-MessageTrackingLog -EventID "RECEIVE" -MessageSubject "test email" | fl --> to get the list of all available fields

Get-MessageTrackingLog -EventID "RECEIVE" -MessageSubject "test email" | fl Timestamp, Sender, Recipients, MessageSubject

Timestamp : 12/22/2009 9:43:10 PM
Sender : Administrator@mycompany.com.vn
Recipients : {Administrator@mycompany.com.vn}
MessageSubject : Test email

Timestamp : 1/4/2010 4:56:32 PM
Sender : Administrator@mycompany.com.vn
Recipients : {Administrator@mycompany.com.vn}
MessageSubject : RE: Test email

The below example uses the Get-MessageTrackingLog command to retrieve message tracking log entries that were created between March 13, 2010 at 09:00 and March 15, 2010 at 17:00 with a Sender parameter value of test1@mycompany.com.vn.

Get-MessageTrackingLog -Start "03/13/2010 9:00AM" -End "03/15/2010 5:00PM" -Sender "test1@mycompany.com.vn"

./.