O'Reilly logo

Microsoft Exchange Server PowerShell Cookbook - Third Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Scripting with the Exchange Web Services Managed API

In this chapter, we will cover the following topics:

  • Getting connected to EWS
  • Sending e-mail messages with EWS
  • Working with impersonation
  • Searching mailboxes
  • Retrieving the headers of an e-mail message
  • Deleting e-mail items from a mailbox
  • Creating calendar items
  • Exporting attachments from a mailbox

Introduction

Exchange Web Services (EWS) was introduced with Exchange 2007. It gave developers the ability to write applications that previously required the use of multiple APIs, such as CDOEx, Exchange OLEDB, WebDAV and more. Today, developers can call the Exchange Management Shell cmdlets from .NET-managed applications to perform administrative tasks programmatically. When it comes to manipulating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required