Exchange/PS MessageTracking question


 hello all,
     i'm hoping can me work out command i'm looking for.  here's pseudocode i've got in mind:
 
get distribution lists
for each distribution list, message tracking log count items in date range.
append each result file.
 
this code i've got knocking around right now.
 
$dl = get-distributiongroup
foreach($item in $dl) {get-messagetrackinglog -server "myservername" -eventid "receive"  -recipient $item.primarysmtpaddress -start "2/17/2009 12:57:00 pm" -end "2/17/2009 1:07:00 pm"}
 
that code returns each item screenhost matches criteria, it's not doing 2 things need.  it's not separating results recipient, , it's giving me detail on event, when need count per recipient.  haven't set export-csv yet, because wanted make sure query worked first.  can give me suggestions?  thanks!

 

hello,

 

as issue related exchange server, suggest discussing in our exchange server forum. best resource troubleshoot issue.

 

exchange server forum:

http://social.technet.microsoft.com/forums/en-us/category/exchangeserver/

 

i hope issue can resolved soon.

 

tim quan - msft

 



Windows Server  >  Management



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...