« Previous 1 2
Exchange Web Services for Mailbox Access
Mail Manager
Creating your Own Tools with Visual Studio and EWS
The EWS interface and Visual Studio also let you create your own tools. For this, you need VisualStudio and the Managed EWS API. Microsoft describes the first steps to develop your own client application in detail on the Exchange site [8].
An open source project named EwsEditor [9] (Figure 2) shows how extensive the possibilities are. The project is public, and everyone can download and view the code. The program lets you access the root structure of a mailbox; it not only lets you view elements but also edit them directly. This makes it a very powerful tool and similar to the Microsoft Exchange MAPI Editor (known as MFCMAPI); it is a useful helper for Exchange administrators and developers.
Conclusions
In this article, we've shown various possibilities for the use of the Exchange Web Services interface. Because the services otherwise used internally by Exchange offer powerful functionality, you don't have to program your own tool. With just PowerShell, Exchange can be accessed easily and quickly via EWS. For the administrator, this offers new automation approaches, and our examples provide additional food for thought.
Infos
- Microsoft Exchange Web Services Managed API 2.2: https://www.microsoft.com/en-us/download/details.aspx?id=42951
- Upcoming changes to the Exchange Web Services API for Office 365: https://techcommunity.microsoft.com/t5/exchange-team-blog/upcoming-changes-to-exchange-web-services-ews-api-for-office-365/ba-p/608055
- Basic Authentication and Exchange Online: https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-april-2020-update/ba-p/1275508
- EWS reference for Exchange: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/ews-reference-for-exchange
- EWS operations in Exchange: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/ews-operations-in-exchange
- EWS Managed API: Export attachments from specific folders: http://blog.icewolf.ch/archive/2020/03/25/ews-managed-api-export-attachments-from-specific-folder.aspx
- Sample script: Delete items in Outlook Recycle Bin that were last changed more than 30 days ago: http://blog.icewolf.ch/archive/2012/07/15/ews-managed-api-demo-delete-items-in-recycle-bin-older.aspx
- Getting started with managed EWS API client applications: https://docs.microsoft.com/de-de/exchange/client-developer/exchange-web-services/get-started-with-ews-managed-api-client-applications
- EwsEditor: https://github.com/dseph/EwsEditor
« Previous 1 2
Buy this article as PDF
(incl. VAT)