<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Use Message Trace Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/use-message-trace/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/use-message-trace/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Fri, 02 Jul 2021 17:02:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>How To Use Message Trace in Office 365 Exchange Online</title>
		<link>https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/</link>
					<comments>https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Fri, 02 Jul 2021 03:12:02 +0000</pubDate>
				<category><![CDATA[Exchange Online]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[How To Use Message Trace in Office 365 Exchange Online]]></category>
		<category><![CDATA[Use Message Trace]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=3104</guid>

					<description><![CDATA[<p>As a Sysadmin, you might come across a scenario where someone comes to you and says, so-and-so sent an email but I never received it. Or I sent so-and-so an email and I want to confirm that it was delivered.&#8230; <a href="https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/">How To Use Message Trace in Office 365 Exchange Online</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As a Sysadmin, you might come across a scenario where someone comes to you and says, so-and-so sent an email but I never received it.  Or I sent so-and-so an email and I want to confirm that it was delivered.  For these types of questions, it&#8217;s best to use Message Trace in Office 365 Exchange Online to get an accurate answer from a systems standpoint.  </p>
<p>There are ways to check in the GUI and ways to check in Powershell way for CLI folks like myself.  We&#8217;ll go over both methods in this article.</p>
<h2>Requirements</h2>
<p>As far as requirements go, we&#8217;ll lay them down here so you can have success when using this immensely useful tool.</p>
<ul>
<li><strong>Global Administrator</strong> -or <strong>Exchange Administrator</strong> Role</li>
<li>Information to query. SenderAddress -or RecipientAddress -or MessageId -or MessageTraceId</li>
</ul>
<h2>How to use Message Trace in Exchange Admin Center (GUI)</h2>
<p>To achieve this, open your favorite browser and navigate to Exchange Online.  There are 2 commonly known portals at this time:</p>
<ul>
<li>Classic Portal Direct Link: <a href="https://outlook.office365.com/ecp/" rel="noopener" target="_blank">https://outlook.office365.com/ecp/</a></li>
<li>Newest Portal Direct Link: <a href="https://admin.exchange.microsoft.com/#/messagetrace" rel="noopener" target="_blank">https://admin.exchange.microsoft.com/#/messagetrace</a></li>
</ul>
<p>&nbsp;<br />
In this example we&#8217;ll use the new portal.</p>
<ul>
<li>Once you&#8217;re in the Message Trace blade, click <strong>start a trace</strong> and a side panel will popup.</li>
<li>Populate the <strong>Sender</strong> and/or <strong>Recipients</strong> you would like to check</li>
<li>Select how many days you would like the search to check.  Anything 10 days or newer, it is immediately accessible. Searches older than 10 days will be sent via email</li>
<li>Select <strong>Summary Report</strong></li>
<li>Click <strong>Search</strong></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace.png" alt="Start Message Trace Exchange Online" width="1603" height="857" class="aligncenter size-full wp-image-3175" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace.png?v=1624948153 1603w, https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace-1024x547.png?v=1624948153 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace-768x411.png?v=1624948153 768w, https://thesysadminchannel.com/wp-content/uploads/2021/06/StartMessageTrace-1536x821.png?v=1624948153 1536w" sizes="(max-width: 1603px) 100vw, 1603px" /></a></p>
<p>&nbsp;<br />
Once you get the data back from the message trace, take note of the message status.  In this case, it will show &#8220;The message was delivered to the recipient&#8217;s Inbox folder.&#8221;  In other cases, it will show SPAM or if they have mailbox rules in place the message will show the folder that it was delivered in.  Pretty neat.</p>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/06/How-to-Use-Message-Trace-in-Exchange-Online-GUI.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/06/How-to-Use-Message-Trace-in-Exchange-Online-GUI.png" alt="How to Use Message Trace in Exchange Online GUI" width="1372" height="776" class="aligncenter size-full wp-image-3178" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/06/How-to-Use-Message-Trace-in-Exchange-Online-GUI.png?v=1624951617 1372w, https://thesysadminchannel.com/wp-content/uploads/2021/06/How-to-Use-Message-Trace-in-Exchange-Online-GUI-1024x579.png?v=1624951617 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/06/How-to-Use-Message-Trace-in-Exchange-Online-GUI-768x434.png?v=1624951617 768w" sizes="(max-width: 1372px) 100vw, 1372px" /></a></p>
<h2>How to use Message Trace in Powershell</h2>
<p>The tool of preference for me will always be Powershell over a GUI because it lends it self to being more scalable. I&#8217;m also in the CLI most of the so it saves time from clicking into multiple windows to get to where I need.</p>
<p>Just like in the GUI, you&#8217;ll need basic information to run proper searches.  Also, one thing to note here is that <strong>Get-MessageTrace</strong> only runs the last 48 hours by default.  If you need to search emails from 2-10 days you&#8217;ll need to use the <strong>-StartDate</strong> and <strong>-EndDate</strong> parameters. Here is an example of how to run the command in Powershell.</p>
<pre class="brush: powershell; title: ; notranslate">
#Get all emails sent to Gabby over the past 10 days.
Get-MessageTrace -RecipientAddress gabby@thesysadminchannel.com -StartDate 6/20/21 -EndDate 6/30/21

</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-1.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-1.png" alt="Get-MessageTrace Example 1" width="1194" height="326" class="aligncenter size-full wp-image-3184" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-1.png?v=1625020559 1194w, https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-1-1024x280.png?v=1625020559 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-1-768x210.png?v=1625020559 768w" sizes="(max-width: 1194px) 100vw, 1194px" /></a><br />
&nbsp;</p>
<p>If you want to get additional information from the email you can pipe it to Get-MessageTraceDetail to give you more detail on what&#8217;s going on under the hood.</p>
<pre class="brush: powershell; title: ; notranslate">
#Get the message trace detail sent to Gabby over the past 10 days.
Get-MessageTrace -RecipientAddress gabby@thesysadminchannel.com | Get-MessageTraceDetail

</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-2.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-2.png" alt="Get-MessageTrace Example 2" width="1172" height="351" class="aligncenter size-full wp-image-3187" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-2.png?v=1625021010 1172w, https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-2-1024x307.png?v=1625021010 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/06/Get-MessageTrace-Example-2-768x230.png?v=1625021010 768w" sizes="(max-width: 1172px) 100vw, 1172px" /></a><br />
&nbsp;</p>
<h2>Get all the Recipients an Email was Sent to</h2>
<p>Another use case is to determine who are all the recipients an email was sent to. This is actually going to be a 2-step process and we&#8217;ll go over those as well.</p>
<p>First we&#8217;ll need to get the MessageId from one of the recipients, an example is just like the one mentioned above.  For the sake of testing, we&#8217;ll use another email to get the hang of everything.</p>
<pre class="brush: powershell; title: ; notranslate">
#Get the message trace detail sent to Gabby over the past 10 days.
PS C:\&gt; Get-MessageTrace -RecipientAddress gabby@thesysadminchannel.com


Message Trace ID  : ce8277a0-7ff1-4269-e598-08d93cdf3d40
Message ID        : &lt;BYAPR05MB51915F70965A7FE777E0243BA8009@BYAPR05MB5191.namprd05.prod.outlook.com&gt;
Received          : 7/1/2021 10:26:15 PM
Sender Address    : testmailbox@thesysadminchannel.com
Recipient Address : gabby@thesysadminchannel.com
From IP           : xxx.xxx.xxx.xxx
To IP             :
Subject           : Message Trace Example
Status            : Delivered
Size              : 18619



PS C:\&gt; Get-MessageTrace -MessageId '&lt;BYAPR05MB51915F70965A7FE777E0243BA8009@BYAPR05MB5191.namprd05.prod.outlook.com&gt;' |
 select Received, RecipientAddress, Subject, Status

Received             RecipientAddress                   Subject               Status
--------             ----------------                   -------               ------
7/1/2021 10:26:15 PM pcontreras@thesysadminchannel.com  Message Trace Example Delivered
7/1/2021 10:26:15 PM testmailbox@thesysadminchannel.com Message Trace Example Delivered
7/1/2021 10:26:15 PM gabby@thesysadminchannel.com       Message Trace Example Delivered

</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2021/07/Use-Message-Trace-in-Office-365-Exchange-Online.png" target="_blank" rel="noopener"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2021/07/Use-Message-Trace-in-Office-365-Exchange-Online.png" alt="Use Message Trace in Office 365 Exchange Online" width="1099" height="632" class="aligncenter size-full wp-image-3205" srcset="https://thesysadminchannel.com/wp-content/uploads/2021/07/Use-Message-Trace-in-Office-365-Exchange-Online.png?v=1625245276 1099w, https://thesysadminchannel.com/wp-content/uploads/2021/07/Use-Message-Trace-in-Office-365-Exchange-Online-1024x589.png?v=1625245276 1024w, https://thesysadminchannel.com/wp-content/uploads/2021/07/Use-Message-Trace-in-Office-365-Exchange-Online-768x442.png?v=1625245276 768w" sizes="(max-width: 1099px) 100vw, 1099px" /></a></p>
<h2>Conclusion</h2>
<p>Hopefully this article was useful enough to show you how to use Message Trace in Office 365 Exchange Online to give you some insight on how to confirm receipt of a message.  It also allows you to see how an email was sent to by using the MessageId.  </p>
<p>If you want to view more content be sure to check out <a href="https://thesysadminchannel.com/office365/exchange-online/" rel="noopener" target="_blank">Exchange Online</a>.  If you prefer video content, check out our <a href="https://www.youtube.com/c/theSysadminChannel" rel="noopener" target="_blank">Youtube Page</a>.</p>
<p>The post <a href="https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/">How To Use Message Trace in Office 365 Exchange Online</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/how-to-use-message-trace-in-office-365-exchange-online/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3104</post-id>	</item>
	</channel>
</rss>
