locked
How to save the following command tracking log results to txt file RRS feed

  • Question

  • How to save the following command tracking log results to txt file: "c:\mytrackmessagelog.txt"
    get-messagetrackinglog -Sender "xxxx@mydomain.com" -Start "10/20/2011 7:40:00 PM" -End "11/07/2011 10:30:00 PM"

    thanks for the helpful info

    Monday, November 7, 2011 10:01 PM

Answers

  • get-messagetrackinglog -Sender "xxxx@mydomain.com" -Start "10/20/2011 7:40:00 PM" -End "11/07/2011 10:30:00 PM" > c:\mt.txt

    Try that


    Sukh
    • Proposed as answer by Rowen-Xu Tuesday, November 8, 2011 6:56 AM
    • Marked as answer by Rowen-Xu Friday, November 18, 2011 7:15 AM
    Monday, November 7, 2011 10:15 PM
  • Or if you want 100% PowerShell cmdlets:

    get-messagetrackinglog -Sender "xxxx@mydomain.com" -Start "10/20/2011 7:40:00 PM" -End "11/07/2011 10:30:00 PM" | out-file C:\mt.txt

    Either should work.

    • Proposed as answer by Rowen-Xu Tuesday, November 8, 2011 6:57 AM
    • Marked as answer by Rowen-Xu Friday, November 18, 2011 7:15 AM
    Monday, November 7, 2011 10:25 PM

All replies

  • get-messagetrackinglog -Sender "xxxx@mydomain.com" -Start "10/20/2011 7:40:00 PM" -End "11/07/2011 10:30:00 PM" > c:\mt.txt

    Try that


    Sukh
    • Proposed as answer by Rowen-Xu Tuesday, November 8, 2011 6:56 AM
    • Marked as answer by Rowen-Xu Friday, November 18, 2011 7:15 AM
    Monday, November 7, 2011 10:15 PM
  • Or if you want 100% PowerShell cmdlets:

    get-messagetrackinglog -Sender "xxxx@mydomain.com" -Start "10/20/2011 7:40:00 PM" -End "11/07/2011 10:30:00 PM" | out-file C:\mt.txt

    Either should work.

    • Proposed as answer by Rowen-Xu Tuesday, November 8, 2011 6:57 AM
    • Marked as answer by Rowen-Xu Friday, November 18, 2011 7:15 AM
    Monday, November 7, 2011 10:25 PM