Configuration guides for IT Administrators

How To Use PowerShell To Trace Exchange Email Messages In Easy Steps

Steps to Trace Exchange Email Messages in PowerShell

1. To begin, you’ll need to open PowerShell as an administrator. You can do this by searching for PowerShell in the start menu, and then right-clicking on it and selecting “Run as Administrator”.

2. Once PowerShell is open, you’ll need to connect to your Exchange Online. You can do this by running the following command:

> Connect-ExchangeOnline

3. Get message trace logs of a mailbox

> Get-MessageTrace -RecipientAddress <mailbox> -start “Date” -end “Date”

> Get-MessageTrace -RecipientAddress <mailbox> -start “Date” -end “Date” > c:\temp\email.log

Replace “Date” with the date that you want to start tracing from, and end date with the date that you want to stop tracing. The tracking information will be saved in the c:\temp\tracking.log file, which you can then open up in a text editor to view the results.

4. View detailed information of traces

> Get-MessageTrace -RecipientAddress <mailbox> -start “Date” -end “Date” | FL

> Get-MessageTraceDetail -MessageTraceId <ID> -RecipientAddress <mailbox>

3 responses to “How To Use PowerShell To Trace Exchange Email Messages In Easy Steps”

  1. mdmbetyono avatar

    Anyone tried mdmbetyono yet? Keep seeing it pop up. Thinking about giving it a shot but wanna hear some real opinions first. Anyone got the inside scoop? Check it out if you dare: mdmbetyono

  2. 6777cxpakistan avatar

    Alright, checked out 6777cxpakistan. It’s got something going on. If you’re looking for something different give it spin 6777cxpakistan

  3. songbac3363 avatar

    Just giving you a heads up on songbac3363. Had a good time there, worth checking out if you are looking to play songbac3363

Leave a Reply to songbac3363 Cancel reply

Your email address will not be published. Required fields are marked *

Lucas Brey

I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.

Tags