search for messages with similar subject
I'm trying to write a little script to find messages with similar, not exact subject. my script starts:
Get-Exchangeserver | where-object {$_.IsHubTransportServer -eq "True"} |get-messagetrackinglog -Sender "person@domain.com" -MessageSubject "review"
Only I want to find all messages with a subject that contains the word "review". Can I use -like?
July 7th, 2011 6:17pm
As per my knowledge, you can use only -eq
Anil MCC 2011,ITIL V3,MCSA 2003,MCTS 2010, My Blog : http://messagingschool.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2011 6:31pm
Get-Exchangeserver | where-object {$_.IsHubTransportServer -eq "True"} |get-messagetrackinglog -Sender "person@domain.com" |
where-object {$_.MessageSubject -like "*review*"}
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
July 7th, 2011 6:32pm
mjolinor - Thanks!! Got it.
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2011 6:49pm
Get-messagetrackinglog -eventid "RECEIVE" -messagesubject "hello" -Start "01/12/2010 00:00:00" -End "07/07/2011 17"30:00"
July 7th, 2011 7:14pm