Categories

Exchange 2010 Tracking Log for last 30 minutes

Here is a script I made to get a tracking log from Exchange hub transport server for last 30 minutes.

get-messagetrackinglog -EventID "RECEIVE" -Server hub2 -Start (((get-date -UFormat "%m-%d-%Y")`
+ " " + ((Get-Date).Addminutes(-30)).ToLongTimeString())) | ft Sender, recipients, MessageSubject, Timestamp

I’m using -UFormat for the date as it’s most comfortable for me, but you can change it to .Net FrameWork time format. You can also adjust the time back which the logs will be searched for – just change the parameter .Addminutes to something else.

This post is also available in: German, Polish

Comments are closed.