Solved

Exchange Message Tracking

Posted on 2014-02-18
13
513 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:Addy Nadia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 5

Accepted Solution

by:
Dave Gould earned 500 total points
ID: 39866826
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
ID: 39866937
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 5

Author Comment

by:Addy Nadia
ID: 39866977
As i checked time is set as per Australia time
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:jimmithakkar
ID: 39867026
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
ID: 39867031
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 5

Author Comment

by:Addy Nadia
ID: 39869292
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
 
LVL 5

Expert Comment

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

what were the results ?
0
 
LVL 5

Author Comment

by:Addy Nadia
ID: 39869663
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
ID: 39869699
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
ID: 39869711
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 5

Author Comment

by:Addy Nadia
ID: 39869735
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
ID: 39869789
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 5

Author Closing Comment

by:Addy Nadia
ID: 39872828
Good.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this video we show how to create a mailbox database 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 Servers >> Data…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

688 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