![Microsoft Exchange Web Services Vb Net Code Samples Microsoft Exchange Web Services Vb Net Code Samples](http://www.msxfaq.de/code/ews01.jpg)
Retrieve Exchange Online Mailbox using EWS Managed API 2.2 and PowerShell Summary One of our clients asked for a PowerShell script which retrieves all the mailboxes Exchange Online is using EWS Managed API 2.2. For this example, the path is the following: C: Program Files Microsoft Exchange Web Services 1.2. The path will vary based on whether you download the 32 or 64 bit version of the Microsoft.Exchange.WebServices.dll. Choose Microsoft.Exchange.WebServices.dll and select OK. This adds the EWS Managed API reference to your project.
Introduction Exchange Web Service (EWS) protocol is similar with IMAP4 protocol. First of all, it supports retrieving email from different mail folder and folder management. Secondly, Exchange Web Service supports mail read flag management.
Therefore, we can do more things with Exchange server. To better understand the Exchange Web Service protocol, please see the following examples. Exchange Server supports POP3/IMAP4 protocol as well, but in Exchange 2007 or later version, POP3/IMAP4 service is disabled by default. If you don’t want to use POP3/IMAP4 to download email from Exchange Server, you can use Exchange Web Service (Exchange 2007/2010/2013/2016 or later version) or WebDAV (Exchange 2000/2003) protocol. Office 365 also supports EWS protocol.