Hello,
I’m trying to find when was the last email sent or received to a distribution mailbox in exchange server 2016.
Active directory is populated with an unholy amount of mailboxes and distribution mailboxes. Is there a way to check if any of these are inactive/not used?
For example, if an email hasn’t been sent or received to/from that mailbox in the last 90 days, what would be the quickest way to find out this data?
Right now I have the below:
Search-Mailbox -SearchQuery {from:emailadressname@domain.com AND Received:"05/24/2021 10:00..08/24/2021 13:00"}
I’m open to hearing other ways of getting this data if there is any better solutions
Thank you in advance