Message Tracking Logs
Can you enter wildcards for the recipients? What I'm trying to do is use a command similar to this;
Get-MessageTrackingLog -ResultSize Unlimited -Start "7/28/2006 8:00AM" -End "7/28/2006 5:00PM" -recipient *@contoso.com
Thanks,
D
January 23rd, 2009 10:29pm
Hi D,Use client side filtering, can you try this? :)Get-MessageTrackingLog -ResultSize Unlimited -Start "7/28/2006 8:00AM" -End "7/28/2006 5:00PM" | where{$_.recipient -like "*@contoso.com"}Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2009 11:16pm
It should be
Get-MessageTrackingLog -ResultSize Unlimited -Start "7/28/2006 8:00AM" -End "7/28/2006 5:00PM" | where{$_.recipients -like *@contoso.com}
missing a "s". :)
Thanks,
Elvis
January 26th, 2009 5:30am
I'll give it a try.
Thanks,
D
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2009 9:45pm
If you use the -match command you do not have to use the *@ so it would look like this:
Get-MessageTrackingLog -ResultSize Unlimited -Start "7/28/2006 8:00AM" -End "7/28/2006 5:00PM" | where{$_.recipients
-match "contoso.com"}
just another option :-)
tu1360
September 23rd, 2011 7:40pm
If you use the -match command you do not have to use the *@ so it would look like this:
Get-MessageTrackingLog -ResultSize Unlimited -Start "7/28/2006 8:00AM" -End "7/28/2006 5:00PM" | where{$_.recipients
-match "contoso.com"}
just another option :-)
tu1360
Exactly. And if you want to use the wildcard in the middle of a string, you have to use the
-like:
(...) | Where {$_.Recipients -like "john*@contoso.com"}
http://LetsExchange.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 24th, 2011 8:21pm