1 统计Exchange2010每位用户单位时间内的发送的邮件数量
1
2
<code>[PS]</code> <code>C:\></code><code>Get-ExchangeServer</code> <code>bj* | </code><code>Get-MessageTrackingLog</code> <code>-Start</code> <code>"2/13/2014 00:00:00"</code> <code>-end</code> <code>"2/14/2014 00:00:00"</code> <code>-EventId</code> <code>send</code> <code>-resultsize</code> <code>unlim</code>
<code>ited</code><code>|Group</code><code>-Object</code> <code>-Property</code> <code>sender | select Name,count | sort count –Descending</code>
<a href="http://lixiaosong.blog.51cto.com/attachment/201402/15/705126_13924260342wGW.png" target="_blank"></a>
2 统计单位时间内向某个邮箱发送的邮件数量或邮件主题:
<code>[PS]</code> <code>C:\></code><code>Get-ExchangeServer</code> <code>bj* | </code><code>Get-MessageTrackingLog</code> <code>-Start</code> <code>"2/13/2014 00:00:00"</code> <code>-end</code> <code>"2/14/2014 00:00:00"</code> <code>-EventId</code> <code>send</code> <code>-Recipients</code> <code>"li</code>
<code>[email protected]"</code> <code>| </code><code>Measure-object</code>
<a href="http://lixiaosong.blog.51cto.com/attachment/201402/15/705126_1392426034V5k8.png" target="_blank"></a>
<code>[email protected]"</code>
<a href="http://lixiaosong.blog.51cto.com/attachment/201402/15/705126_1392426034dYLo.png" target="_blank"></a>
3 单位时间内内部用户收到邮件的数量统计
<code>[PS]</code> <code>C:\></code><code>Get-ExchangeServer</code> <code>bj* | </code><code>Get-MessageTrackingLog</code> <code>-Start</code> <code>"2/13/2014 00:00:00"</code> <code>-end</code> <code>"2/14/2014 00:00:00"</code> <code>-EventId</code> <code>Receive</code> <code>-resultsize</code>
<code>unlimited| Where {</code><code>$_</code><code>.Recipients </code><code>-like</code> <code>"*@xxx.com"</code><code>} | </code><code>Measure-object</code> <code>#注释xxx.com为公司的Exchange域名</code>
<a href="http://lixiaosong.blog.51cto.com/attachment/201402/15/705126_1392426034mvMC.png" target="_blank"></a>
本文转自handsome7038 51CTO博客,原文链接:http://blog.51cto.com/lixiaosong/1359358