Exchange 2010 powershell cmd
Hi all,
when i type command:
get-messagetrackinglog -Recipients:Name.Surname@company.com -EventID "DELIVER" -Start "1.9.2011 11:00:00" -End "2.9.2011 11:00:00"
i got error:
Cannot process argument transformation on parameter 'Start'. cannot convert value "1.9.2011 11:00:00" to type "System.DateTime"
did anyone solve problem above?
Thx, J.
October 25th, 2011 6:08am
note: date and time is format of regional settings date, time
Free Windows Admin Tool Kit Click here and download it now
October 25th, 2011 6:22am
Hello,
try:
get-messagetrackinglog -Recipients:Name.Surname@company.com -EventID "DELIVER" -Start "09/01/2011 11:00:00" -End "09/02/2011 11:00:00"
Greetings,
Toni
October 25th, 2011 10:14am
Hi
Follow this example
Get-MessageTrackingLog -Start "03/13/2010 9:00AM" -End "03/15/2010 5:00PM"
Free Windows Admin Tool Kit Click here and download it now
October 26th, 2011 9:44am
Yeah, I highly suspect it's the regional settings - ie the "." between the day and month and between the month and year.
Try this:
$start = get-date "1.9.2011 11:00:00"
$end = get-date "2.9.2011 11:00:00"
get-messagetrackinglog -Start $start -End $end
That way you're explicitly converting the format with get-date which should honor the regional settings (the ".").
J
October 26th, 2011 11:28pm
Thanks all for your posts,
i´ve tested almost everything but its interesting: when i set date values from 1.9.2011 to 10.10.2011 its listed mails-OK. But when i change end date value to 9.10.2011 its displayed error "The search time was incorrectly specified. The end and
start parameter values cannot be the same" :)
and how it ?
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2011 5:41am