Forum Discussion
Libbo88
Apr 18, 2024Copper Contributor
obtain an “Unread E-mail Report” for individual email addresses filtered by specific company name.
HI All, i have created PS for exchange to genarate above requerment.but when i run this i get CSV without any data in it.can anyone tell me what is the problem. my script is $inboxStats ...
- Apr 18, 2024There is no way to get this data by default via Exchange PowerShell only, which is why I suppose the workaround of moving messages from said company/domain was implemented.
You can look into a solution based on the Graph SDK for PowerShell instead, here's a sample to get you started: https://practical365.com/mailbox-contents-report/
VasilMichev
Apr 18, 2024MVP
That script will only work if items received from the company in question are all stored within a subfolder of Inbox, named as the company domain.
- Libbo88Apr 18, 2024Copper ContributorVasilMichev.
thank you for your reply.can you explain/what to edit how can i get report, which is in inbox by specific company domain?- VasilMichevApr 18, 2024MVPThere is no way to get this data by default via Exchange PowerShell only, which is why I suppose the workaround of moving messages from said company/domain was implemented.
You can look into a solution based on the Graph SDK for PowerShell instead, here's a sample to get you started: https://practical365.com/mailbox-contents-report/- Libbo88Apr 18, 2024Copper ContributorThank you @vasil.