Messagetracking
It’s often required to track the message flow in your Exchange environment. Of ourse, Exchange has it’s web-based GUI to track messages but it’s limited in function.
You should use PowerShell to analyze mailflow in a detailed level.
Output table formated. First, transport servers are selected. The result is piped into the main query phrase and filtered mathching the E-Mail subject.
Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00″ -End “01/15/2012 14:25:00″ | Where {$_.MessageSubject -like “*Exchange*”} | ft EventId,Source,Sender,MessageSubject,Recipients -autosize
You could this output more detailed list-formated.
Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00″ -End “01/15/2012 14:25:00″ | Where {$_.MessageSubject -like “*Exchange*”} | fl
Filter for empty subject.
Get-TransportServer | Get-messagetrackinglog -Sender “USER@DOMAIN.COM” -Start “01/15/2012 11:15:00″ -End “01/15/2012 14:25:00″ | Where {$_.MessageSubject -like “”} | fl
Filtering messagelog to track mails sent to a special domain.
Get-TransportServer | Get-MessageTrackingLog -Start “01/15/2012 12:00am” -ResultSize Unlimited | Where {$_.Recipients -match “googlemail.com”}
Cheers,
Chris
Filed under: Exchange 2010, HT, Powershell | Leave a Comment
Tags: exchange, filter, messagetracking
-
Recent Posts
Top posts
- Remove (legacy) Exchange server using ADSIEdit
- Complete remove Exchange 2013 using ADSIEdit
- How to mount/dismount mailbox databases via PowerShell
- Remove public folder using ADSIEdit
- Enable circular logging
- Viewing total incoming/outgoing email statistics
- Get the number of mailboxes per database
- Access Exchange 2013 EAC in mixed 2010/2013 environment
- About me
- Export users and attributes using csvde
Tags
2003 2007 2010 2013 active activesync ADSI adsiedit cannot coexistence cross dag database delete directory ems error exchange folder full installation legacy mailbox migration move outlook overview OWA permission powershell public release remove ressource rollup schema server SP2 system task transport update user Version WindowsCategories
Meta
Flickr Photos



More Photos
Exchange Team Blog- Released: Exchange Server 2013 Management Pack May 15, 2013The Microsoft Exchange Server 2013 Management Pack (SCOM MP) is now live! As I discussed in my Managed Availability article, the key difference between this management pack and previous releases, is that our health logic is now built into Exchange, as opposed to the management pack. This means updates to Exchange 2013 (like our cumulative updates), will incl […]
- Released: Exchange 2013 Server Role Requirements Calculator May 14, 2013download readme It’s been a long road, but the initial release of the Exchange 2013 Server Role Requirements Calculator is here. No, that isn’t a mistake, the calculator has been rebranded. Yes, this is no longer a Mailbox server role calculator; this calculator includes recommendations on sizing Client Access servers too! Originally, marketing wanted to br […]
- Use Exchange Web Services and PowerShell to Discover and Remove Direct Booking Settings May 10, 2013Prior to Exchange 2007, there were two primary methods of implementing automated resource scheduling – Direct Booking and the AutoAccept Agent (a store event sink released as a web download for Exchange 2003). In Exchange 2007, we changed how automated resource scheduling is implemented. The AutoAccept Agent is no longer supported, and the Direct Booking met […]
- Ask the Perf Guy: Sizing Exchange 2013 Deployments May 6, 2013Since the release to manufacturing (RTM) of Exchange 2013, you have been waiting for our sizing and capacity planning guidance. This is the first official release of our guidance in this area, and updates to our TechNet content will follow in a future milestone. As we continue to learn more from our own internal deployments of Exchange 2013, as well as from […]
- Public Folders and Exchange Online May 2, 2013“You mean… this is really happening?” Last November we gave you a teaser about public folders in the new Exchange. We explained how public folders were given a lot of attention to bring their architecture up-to-date, and as a result of this work they would take advantage of the other excellent engineering work put into Exchange mailbox databases over the yea […]
- Introducing Message Analyzer, an SMTP header analysis tool in Microsoft Remote Connectivity Analyzer May 1, 2013Microsoft Remote Connectivity Analyzer is a web-based tool that provides administrators and end users with the ability to run connectivity diagnostics for our servers to test common issues with Microsoft Exchange, Lync and Office 365. The tool started as Microsoft Exchange Server Remote Connectivity Analyzer, and based on your feedback we've continued t […]
- Troubleshoot your Exchange 2010 database backup functionality with VSSTester script April 29, 2013Download Frequently in support, we encounter several backup related calls for Exchange 2010 databases. A sample of common issues we hear from our customers are: “My backup software is not able to take a successful snapshot of the databases” “My backups have been failing for quite a while. I have several thousand log files consuming disk space and I will even […]
- Exchange 2010 Database Availability Groups and Disk Sector Sizes April 24, 2013These days, some customers are deploying Exchange databases and log files on advanced format (4K) drives. Although these drives support a physical sector size of 4096, many vendors are emulating 512 byte sectors in order to maintain backwards compatibility with application and operating systems. This is known as 512 byte emulation (512e). Windows 2008 and […]
- Updated: Exchange Server 2013 Deployment Assistant April 22, 2013We’re happy to announce updates to the Exchange Server 2013 Deployment Assistant! We’ve updated the Deployment Assistant to include the following new scenarios: Upgrading from Exchange 2007 to Exchange 2013 Upgrading from Exchange 2010 to Exchange 2013 Configuring an Exchange 2013-based hybrid deployment for Exchange 2007 organizations These new scenarios pr […]
- Troubleshooting Rapid Growth in Databases and Transaction Log Files in Exchange Server 2007 and 2010 April 18, 2013A few years back, a very detailed blog post was released on Troubleshooting Exchange 2007 Store Log/Database growth issues. We wanted to revisit this topic with Exchange 2010 in mind. While the troubleshooting steps needed are virtually the same, we thought it would be useful to condense the steps a bit, make a few updates and provide links to a few newer KB […]
- Released: Exchange Server 2013 Management Pack May 15, 2013
No Responses Yet to “Messagetracking”