Forum Discussion
Begie1605
Nov 18, 2020Copper Contributor
EXCHANGE-Online: powershell to get the number of mails in inbox not in a specific category
Hi All, I have a specific question. I want via powershell get the number of mails in the inbox of a online shared mailbox that do not have a specific category.... Seems special request? Let me e...
VasilMichev
Nov 18, 2020MVP
PowerShell can only give you the total number of items, it doesnt offer any way to filter by Category. You can easily do this in Outlook though, or if you need to do it programmatically, use EWS or the Graph API. Here's a sample article for the former: https://gsexdev.blogspot.com/2014/10/searching-based-on-categories-in-ews.html