Powershell to extract IP address from the Exchange Transport Log for unique IP address of the sender

Hi People,

Can anyone please share with me the powershell script to export the list of Unique IP address that is sending to my Exchange Server Hub Transport Server ?
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?
SubsunConnect With a Mentor Commented:
Try this code and see if you get expected result..
Get-MessageTrackingLog -ResultSize Unlimited | select ClientIp -Unique

Open in new window

To export to csv file..
Get-MessageTrackingLog -ResultSize Unlimited | select ClientIp -Unique | Export-csv C:\report.csv -nti

Open in new window

Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks Subsun ! it is exactly what I need :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.