0
votes

I am looking for method to get the list of all the mailboxes through ews api.

Is there any method call,Get-Mailbox cmd in powershell, that can get me the list of all the mailboxes in an exchange server/ office 365 in EWS API?

2

2 Answers

2
votes

No. EWS is used to access mailbox data, not get lists of mailboxes. Get-Mailbox is the way to do it, and you can invoke this programmatically if needed.

1
votes

ExchangeService.GetSearchableMailboxes is what you need, specify the the filter as an empty string, then you get all the mail boxes.