How to do message trace with following powershell command Get-MessageTrace -FromIP 192.168.0.5 | OutGridView

Gurudas 886 Reputation points
2022-04-22T05:22:24.52+00:00

Hello Team,

How to do message trace with Exchange Online Powershell command, Please explain with step by step screenshots and kb article.

Get-MessageTrace -FromIP 192.168.0.5 | OutGridView

Thank you in advance :)

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Carlos Solís Salazar 16,611 Reputation points
    2022-04-22T13:09:38.483+00:00

    Hi @GurudasSatardekar

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    You can find all the information about the commands Get-MessageTrace and Out-GridView

    But a sequence of commands from PowerShell could be:

    Install-Module -Name ExchangeOnlineManagement  
    Import-Module ExchangeOnlineManagement  
    Connect-ExchangeOnline  
    Get-MessageTrace -FromIP "The public ip" | Out-GridView  
    

    It will open a new window like this
    195641-0.png

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.



  2. KyleXu-MSFT 26,211 Reputation points
    2022-04-25T02:46:49.567+00:00

    @GurudasSatardekar

    You need connect to Exchange with PowerShell first (You could choose one of the following two ways to connect):

    Then you will could run Get-MessageTrace command in PowerShell.

    You could use the command below to check the "MessageTraceId" for emails:

    Get-MessageTrace  -FromIP 192.168.0.5 | fl MessageTraceId,RecipientAddress,Subject  
    

    Then you could use the Get-MessageTraceDetail command to check detailed information:

    Get-MessageTraceDetail -MessageTraceId "xxxxx" -RecipientAddress "user@domain.onmicrosoft.com"  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments