• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1325
  • Last Modified:

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 Engineer
Senior IT System Engineer
1 Solution
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now