question

Gurudas avatar image
0 Votes"
Gurudas asked KyleXu-MSFT edited

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

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 :)

office-exchange-server-mailflow
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GurudasSatardekar

I am writing here to confirm with you any update about this thread now.
If the suggestion below helps, please feel free to accept it as an answer to help more people.

0 Votes 0 ·
soysoliscarlos avatar image
0 Votes"
soysoliscarlos answered soysoliscarlos commented

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.





0.png (410.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GurudasSatardekar , you can Accept Answer and Upvote, if the above response helped answer your query, others visiting the forum with the same query might get help.

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

0 Votes 0 ·
KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

@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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.