Announcement

Collapse
No announcement yet.

Schedule task for message tracking

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Schedule task for message tracking

    Hi Guys,

    i need to automate this

    get-messagetrackinglog -Sender "[email protected]" -Start "9/2/2010 12:01:00 AM" -End "9/3/2010 12:00:00 AM" -ResultSize unlimited -MessageSubject "Subject of the message" | select-object Timestamp,ClientIp,ClientHostname,ServerIp,ServerH ostname,SourceContext,ConnectorId,Source,EventId,I nternalMessageId,MessageId,TotalBytes,RecipientCou nt,RelatedRecipientAddress,Reference,MessageSubjec t,MessageInfoSender,ReturnPath,@{Name=”Recipients” ;Expression={$_.recipients}},@{Name="Sender";Expre ssion={$_.Sender}},@{Name="Recipient Status";expression={$_.RecipientStatus}} | Export-Csv c:\result.csv

    how can i do that?

    Start time should be the date yesterday and end time is the current date.


    thanks in advance.

  • #2
    Re: Schedule task for message tracking

    Save the script and use Windows schedule. Start and end time are specified on the script.
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment

    Working...
    X