Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


March 19, 2008

Q. How can I use the command line to quickly search Microsoft Exchange Server 2007 message tracking information?


RSS
Subscribe to Windows IT Pro | See More Exchange Server and Outlook Articles Here | Reprints

A. The Exchange 2007 PowerShell cmdlet Get-MessageTrackingLog is a great way to search Exchange 2007's message tracking log. For example, to quickly search for any message from bruce@savilltech.net that contains the word "Batman" in the subject, use the command

Windows\System32>Get-MessageTrackingLog -server savdalex01 -messagesubject "Batman" -sender bruce@savilltech.net

The return would be:

EventId Source Sender Recipients MessageSubject
-------------------------------------------
RECEIVE STORE... bruce@savilltech.net {clark@savilltech... Batman is the best
DELIVER STORE... bruce@savilltech.net {clark@savilltech... Batman is the best
SUBMIT STORE... bruce@savilltech.net {} Batman is the best

This output shows only some detail. If you added "| fl" to the end of the command, the output would return a list with more information, similar to the following code and return:

Windows\System32>Get-MessageTrackingLog -server savdalex01 -messagesubject "batman" -sender bruce@savilltech.net | fl

The return would be:

Timestamp : 3/11/2008 11:08:07 AM
ClientIp : fe80::5de2:b09f:7c88:bb73
ClientHostname : savdalex01.savilltech.net
ServerIp : fe80::5de2:b09f:7c88:bb73%10
ServerHostname : savdalex01
SourceContext :
ConnectorId :
Source : STOREDRIVER
EventId : RECEIVE
InternalMessageId : 1
MessageId : <6A41D17A924EE74E81753F40A83AE1860D2ECB690B@savdalex0
1.savilltech.net>
Recipients : {clark@savilltech.net}
RecipientStatus : {}
TotalBytes : 3601
RecipientCount : 1
RelatedRecipientAddress :
Reference :
MessageSubject : Batman is the best
Sender : bruce@savilltech.net
ReturnPath : bruce@savilltech.net
MessageInfo : 04I:

There are a number of other commands you can use, including a start and end date and time (-start and -end), the number of results to return (-resultsize), and a list of the recipients (-recipients). For a full list of options, use the command:

Get-help get-messagetrackinglog -detailed

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Managing Virtual Sprawl

As some wise person once said, nothing is ever truly free. Such is the case with VMs, which can quickly mutate from a cost-reducing Dr. Jekyll into a time-consuming, profligate nightmare that would do Mr. Hyde proud. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...


Exchange Server and Outlook Whitepapers Recent Lessons in Disaster Recovery

How to Evaluate and Choose a Messaging Archiving Solution

An IT Investment That Pays Real Dividends: Building ROI with your Email System

Related Events Mastering Exchange 2007 Server Management – May 29, 2008 (11:00 AM EST)

Check out our list of Free Email Newsletters!

Exchange Server and Outlook eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

The Expert's Guide for Exchange 2003: Preparing for, Moving to, and Supporting Exchange Server 2003

Related Exchange Server and Outlook Resources Exchange & Outlook Newsletter
Subscribe and SAVE 28% -- limited-time offer

Monthly Online Pass
Get instant online access to every Exchange & Outlook Administrator Newsletter article

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Exchange & Outlook UPDATE eNewsletter
News, strategies, products, and developments in Exchange Server and Outlook messaging.



ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

EXCHANGE 2007 Mastery Series – May 29, 2008
3 Info-packed eLearning seminars for only $99! Learn the pros and cons of your mailbox high availability options, see real-world examples of Transport Rules, and get started with basic PowerShell commands with Mark Arnold, MCSE+M and Microsoft MVP.

Windows IT Pro Master CD: Take the Experts with You!
Find the solutions you need in thousands of searchable articles, helpful bonus content, and loads of expert advice with the Windows IT Pro Master CD. Order comes with a 1-year subscription to the new, online articles posted every day!

Making the Case for Oracle Database on Windows
One of the best-kept secrets in the IT industry is the depth of support Oracle offers to customers deploying its databases on Microsoft Windows platforms.

SQL Server Magazine Master CD: Take the Experts with You!
Find the solutions you need in thousands of searchable articles, helpful bonus content, and loads of expert advice with the SQL Server Magazine Master CD. Order comes with a 1-year subscription to the new, online articles posted every day!

Attention User Group Leaders...
Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes. And add Windows IT Pro & SQL Server Mag articles alongside your own message!.

Become a fan of Windows IT Pro on Facebook
Join the Windows IT Pro fan club on Facebook. Chat with other IT Pros, upload your pictures, check out what's up n' coming in the next issue and more!



Solve the 12 Toughest Active Directory Management Tasks Today
No matter which management tasks you’re dealing with, you’ll discover a new set of ideas about how to best manage your Active Directory environment.

Get Started with Oracle on Windows DVD
Learn how Oracle gives you the power to grow by providing a scalable, easy-to-use platform for running your business at a price you can afford.

Virtualization Essentials – Free Online Conference :: June 24th
Learn virtualization basics - Discover how to reduce IT costs while increasing the efficiency, utilization, and flexibility of your existing computer hardware. Register Today!

Gain enhanced insight into and control over your IT systems.
View this web seminar to learn about the latest and greatest features and product enhancements in the Systems Center Configuration Manager SP1 and R2.

11 Myths About Microsoft Exchange Backup & Recovery
This white paper will guide you in overcoming Exchange Backup and Recovery myths with careful planning and the right toolset.
Windows IT Pro Home Register About Us Affiliates / Licensing Press Room Media Kit Contact Us/Customer Service  
SQL Connected Home IT Library SuperSite FAQ Wininfo News
Europe Edition Office & SharePoint Pro Windows Dev Pro Windows Excavator 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing