1 统计Exchange2010每位用户单位时间内的发送的邮件数量
[PS] C:\>Get-ExchangeServer bj* | Get-MessageTrackingLog -Start "2/13/2014 00:00:00" -end "2/14/2014 00:00:00" -EventId send -resultsize unlim ited|Group-Object -Property sender | select Name,count | sort count –Descending
2 统计单位时间内向某个邮箱发送的邮件数量或邮件主题:
[PS] C:\>Get-ExchangeServer bj* | Get-MessageTrackingLog -Start "2/13/2014 00:00:00" -end "2/14/2014 00:00:00" -EventId send -Recipients "li xiaosong8706@gmail.com" | Measure-object
[PS] C:\>Get-ExchangeServer bj* | Get-MessageTrackingLog -Start "2/13/2014 00:00:00" -end "2/14/2014 00:00:00" -EventId send -Recipients "li xiaosong8706@gmail.com"
3 单位时间内内部用户收到邮件的数量统计
[PS] C:\>Get-ExchangeServer bj* | Get-MessageTrackingLog -Start "2/13/2014 00:00:00" -end "2/14/2014 00:00:00" -EventId Receive -resultsize unlimited| Where {$_.Recipients -like "*@xxx.com"} | Measure-object #注释xxx.com为公司的Exchange域名
转载于:https://blog.51cto.com/lixiaosong/1359358