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



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS