Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exchange Message Tracking

Posted on 2014-02-18
13
Medium Priority
?
539 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 1500 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
In this video we show how to create a Contact 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 Recipients >> Contact ta…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

609 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