Solved

Exchange Message Tracking

Posted on 2014-02-18
13
469 Views
Last Modified: 2014-02-20
Hi Team,

when i type command:


get-messagetrackinglog -Sender "emailid" -Server "Servername" -EventID "DELIVER" -Star
t "17/2/2014 10:00:00 AM" -End "17/2/2014 11:54:00 AM"

Error Coming :

Cannot process argument transformation on parameter 'Start'. Cannot convert value "17/2/2014 10:00:00 AM" to type "Syst
em.DateTime". Error: "String was not recognized as a valid DateTime."
    + CategoryInfo          : InvalidData: (:) [Get-MessageTrackingLog], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MessageTrackingLog


Can you please what is the suggestion on this to resolve it
0
Comment
Question by:Andy Navi
13 Comments
 
LVL 5

Accepted Solution

by:
Dave Gould earned 500 total points
Comment Utility
It looks like you've got the date format wrong. You need to specify the date in US format.
ie -start "02/17/2014 10:00:00am"
0
 
LVL 4

Expert Comment

by:michaelalphi
Comment Utility
The naming convention for log files in the message tracking log directory is as : MSGTRKyyyymmdd-nnnn.log, MSGTRKMAyyyymmdd-nnnn.log, MSGTRKMDyyyymmdd-nnnn.log, and MSGTRKMSyyyymmdd-nnnn.log .
In which the placeholder "yyyymmdd" is the coordinated universal time (UTC) date on which the log file was created.
And, The placeholder "nnnn" is an instance number that starts at the value of 1 daily for each message tracking log file name prefix.
0
 
LVL 4

Author Comment

by:Andy Navi
Comment Utility
As i checked time is set as per Australia time
0
 
LVL 7

Expert Comment

by:jimmithakkar
Comment Utility
Need to check date and time format in your system, please use below cmd

Get-Date [[-Date] <DateTime> ]

according to need to use cmd
0
 
LVL 5

Expert Comment

by:Dave Gould
Comment Utility
what do get-culture and get-uiculture give you from the powershell console ?
if the latter is en-US then my first remark is correct
0
 
LVL 4

Author Comment

by:Andy Navi
Comment Utility
When i Enter Get-Date command on the Server on which i am running the command that mentioned in question.

Date is comming like below :

Wednesday, 19 February 2014 1:04:20 PM

Now confirm what would be the amendment in the command to run the message tracking
0
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 
LVL 5

Expert Comment

by:Dave Gould
Comment Utility
Have you entererd the 2 commands that I posted earlier?
get-culture
get-uiculture

what were the results ?
0
 
LVL 4

Author Comment

by:Andy Navi
Comment Utility
sorry but i want to know what this command will do, because i am going to run on Production Server..

Thanks/
0
 
LVL 5

Expert Comment

by:Dave Gould
Comment Utility
Its only a display of the current settings. Here is what I get on my server:

[PS] D:\data\scripts>get-date
mercredi 19 février 2014 09:24:16

[PS] D:\data\scripts>get-culture
LCID             Name             DisplayName
----             ----             -----------
4108             fr-CH            French (Switzerland)

[PS] D:\data\scripts>Get-UICulture
LCID             Name             DisplayName
----             ----             -----------
1033             en-US            English (United States)
0
 
LVL 3

Expert Comment

by:chriskelk
Comment Utility
Get-Culture and Get-UICulture will only report on the language used on the server, it won't make any changes so nothing to worry about.

In any case, Get-MessageTrackingLog (it seems from Exchange 2010 onwards - it was fine for us under 2007) requires that dates are entered in US date format, regardless of the local regional settings.

You could wrap the Message Tracking request in a script, but that gets quite involved.  

I've attached a script I use as a starting point (written a while ago, so not the most elegant script ever).  This will work with dates in local format.  The parameters it uses are:
 -f (from) for the sender, which can be stated as an email address or username
 -t (to) for the recipient, which can be stated as an email address or username
 -s (start) for the start date or time (it'll assume midnight, if not stated)
 -e (end) for the end date or time (it'll assume 23:59 if not stated)
 -tw (two-way) to report a two-way conversation (i.e. messages sent to and from the recipient or sender, or between the recipient and sender)
 -ip to include IP addresses rather than hostnames in the report.

The script will search all transport servers, and produce a CSV (which it will then launch in Excel or notepad, or whichever application is associated with CSV files) in c:\Reports\mail.
track-msg.ps1.txt
0
 
LVL 4

Author Comment

by:Andy Navi
Comment Utility
Hello,

Here the results of two commands..


[PS] C:\>get-culture

LCID             Name             DisplayName
----             ----             -----------
3081             en-AU            English (Australia)


[PS] C:\>Get-UICulture

LCID             Name             DisplayName
----             ----             -----------
1033             en-US            English (United States)
0
 
LVL 5

Expert Comment

by:Dave Gould
Comment Utility
Its because of the en-US UICulture that I believe that you need to format your messageTrackingLog queries in the US format (see my first post). Have you actually tried it ?
0
 
LVL 4

Author Closing Comment

by:Andy Navi
Comment Utility
Good.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now