Unfortunately, Microsoft does not provide an easy way to query when a distribution list was last used as a value of one of its attributes.
in here I have written a PowerShell script that can be run as scheduled task on a daily basis from any server and does just that (The following)
The Stamp happens based on the following two conditions:
This way you will have a comprehensive way of reporting and determining when a distribution list was last used. This script needs to run every day based on the last 30 days logs which means:
The script will also send an email report of DLs that are stamp and the error that may have happened.
I hope I have explained it right :)
You can always comment here or drop me a message in my Experts Exchange Profile for more question and help.
You can also Download the script from Technet Gallery
https://gallery.technet.microsoft.com/office/Exchange-Distribution-a8095f75
Hope this article has helped you out.
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Commented: