• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2598
  • Last Modified:

get-messagetrackinglog returns no result ?

Hi All,

I'm trying to get email log by using the script from MS Exchange Troubleshooting Assistant and then customizing it further:


but it returns no result, is there something wrong with the syntax ? or is there any other logging option that i should enable ?

Thanks
get-messagetrackinglog -Recipients:myself@domain.com -Sender "sender@outsidedomain.com" -EventID "RECEIVE" -Start "1/04/2009 5:00:00 PM" -End "28/04/2009 5:31:00 PM

Open in new window

0
jjoz
Asked:
jjoz
1 Solution
 
AkhaterCommented:
First thing I suggest you do is to try to use the GUI instead it will put aside the potential syntax error.

also try it without the -EventID

finally do you have multiple exchange servers or just one ?
0
 
jjozAuthor Commented:
this is just one single server (HT-CAS-MBX) but I couldn't get any result from both GUI and powershell ?
0
 
AkhaterCommented:
when you used the GUI did you remove the checkbox of EventID ?

did you click on "resolve receipient" after you entered your email address ?


try  this

get-messagetrackinglog -Sender "sender@outsidedomain.com" -EventID "RECEIVE" -Start "1/04/2009 5:00:00 PM" -End "28/04/2009 5:31:00 PM

Open in new window

0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
jjozAuthor Commented:
but it does work with the other -Sender "sender2@outsidedomain.com" ?!?!

yes, I did
clicked the RESOLVE Receipient button to check my domain user mailbox

EventID unchecked as well for greater range.
0
 
jjozAuthor Commented:
The result from your script still couldn't be displayed even though the script has completed. I wonder what makes the result empty ?
0
 
AkhaterCommented:
>>but it does work with the other -Sender "sender2@outsidedomain.com" ?!?!<<

Ok you didn't tell us this before

so you can find for sender2@outsidedomain.com but not for sender@outsidedomain.com ??

are sender and sender2 in the same outsidedomain.com ???

are you sure that "sender@outsidedomain.com" did send you an email in the given period ?

what if you try

get-messagetrackinglog -Recipients:myself@domain.com -EventID "RECEIVE" -Start "1/04/2009 5:00:00 PM" -End "28/04/2009 5:31:00 PM

and check all emails you got in that period of time maybe it is showing in the log as something else then "sender@outsidedomain.com"

0
 
gupnitCommented:
Hi,
You got to make sure that MT is enabled first - http://www.msexchange.org/tutorials/Exchange-2007-Message-Tracking-Part1.html
Then first try using the simple command and see if anything is returned: get-messagetrackinglog -Sender sender@outsidedomain.com
Let me know
Thanks
Nitin Gupta (gupnit)
0
 
AkhaterCommented:
@gupnit

he said it is working for sender2@outsidedomain.com so message tracking is enabled

0
 
jjozAuthor Commented:
To All,

the following cmdlets work fine to me:

which is very2 confusing :-|

get-messagetrackinglog -Sender "myself@gmail.com" -Recipients "myself@domain.com.au" -EventId "DELIVER"

Open in new window

0
 
AkhaterCommented:
so I guess that
 
myself@gmail.com = "sender@outsidedomain.com" ???? which was not working

and that "myself@domain.com.au" = myself@domain.com of your previous post ??
 

you also told me that it didn't give any result without EventID what am i missing here?
0
 
jjozAuthor Commented:
"myself@gmail.com = "sender@outsidedomain.com" ???? which was not working "
no it's two different recipient.

while ""myself@domain.com.au" = myself@domain.com"" is the same. and that is me.

well i guess the email hasn't been received or re-sent during the my mail server outage yesterday.

0
 
AkhaterCommented:
so if all is working why can't it just be that "sender@outsidedomain.com" simply didn't sent any message during that period of time ?

Have you received anything from him/her in that period ?

0
 
jjozAuthor Commented:
(-_-)".. pardon me guys...
i guess I'll have to give up since they haven't sent the email meaning that it won't be recorded by the Agentlog....(unless the server is psychic :-) )
0
 
AkhaterCommented:
oki :)
0
 
Mark DamenERP System ManagerCommented:
You might need to add -SERVER "servername" as well.

I've found, that running the Message Tracking Tool from my administation machine doesnt work, until I changed the server from the default of "my local ip" to the actual server name I want to run the tracking against.

Mark
0
 
jjozAuthor Commented:
Alright,
Sorry to you all guys :-| my bad.

it seems that the sender hasn't sent the email and that is confirmed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now