How to automate daily message tracking report for a user
hi,
every day running below command export user1@abc.com daily send/receive tracking email report. need automate task. please automate it.
get-exchangeserver | {$_.ishubtransportserver -eq $true -or $_.ismailboxserver -eq $true} | get-messagetrackinglog -recipient user1@abc.com -start "08/08/2013 05:00 am" -end "08/09/2013 05:00 am" | select-object timestamp,clienthostname,eventid,source,sender,@{name="recipients";expression={$_.recipients}},recipientcount,serverhostname,sourcecontext | export-csv e:\test\emailreport.csv
hi,
take @ this:
http://www.mikepfeiffer.net/2010/02/creating-scheduled-tasks-for-exchange-2010-powershell-scripts/
Windows Server > Windows PowerShell
Comments
Post a Comment