Office 365 Hyrbid environment need to find last time all Distribution groups were used

We run a Exchange 2013 Hybrid server in a office 365 cloud based environment.  All mailboxes are in cloud but all Distribution groups are on the hyrbid on prem server.  how can I get a report on last usage for these DG's?

Who is Participating?
Sudhir BidyeConnect With a Mentor Commented:
Get-messagetrackinglog -recipient <email of your group> | fl export-csv c:\results.csv

You can add more fiiltering parameters for get-messagingtrackinglog as per your requirement. More parameters are listed here.
Simon Butler (Sembee)ConsultantCommented:
That information isn't stored by Exchange/Windows.
The only way you can get some information is via message tracking, but if the group hasn't been used in the message tracking window (14 days by default I think it is) then you will get no results.

Twhite0909Author Commented:
Ok how can I run a powershell cmd to show me activity in the messagetracking and pipe it to a CSV?
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.