Get a Report of All Messages Received from a Particular Sender
This is a simple script that will check the message tracking logs on all of your Exchange Hub Transport Servers for messages received from a particular sender.
Usage:
Get_Sender.ps1 <email-address>
Example:
Get_Sender.ps1 joe@bleau.net
The script saves the output (if found) at c:\temp\sender-report.csv.
# Filename : get_sender.ps1 # Purpose : Creates a report of all emails recently received from a particular sender. # Records the results at c:\temp\sender-report.csv. # Requires the following applications to be installed: # Exchange Management Shell # # Modified : 2013.02.28 Jay Carper; Created # : Param([string]$Sender) # If no sender address was specified, prints syntax and exits. # Gets a list of all hub transport servers in the organization. # Checks log files on each hub transport server for the sender and saves results. if ($Results) { |
You can just copy the above text into notepad and save it as C:\Windows\System32\WindowsPowerShell\v1.0\Get_Sender.ps1.
Since the CAS and HUB roles are combined in Exchange 2013, I don’t yet know whether it will work in that version or not.
If you see this article before I fix it, WordPress messes with the formatting of double-quotes, so if you cut and paste the script, you will need to fix the non-standard quotes to plain-vanilla quotes.
Hmm. Changing the double-quotes to " didn’t help. Does anyone know how to tell WordPress to stop converting standard quotes into left and right quotes?