Authenticating against Exchange Web Services using certificate based OAuth2 tokens

Overview This post contains step by step information on configuring your environment and authenticating against Exchange Web Services using certificate based OAuth2 tokens. The information in this blog post is only valid for connecting to Exchange Online mailboxes. Requirements In order to set up certificate based OAuth2 authentication you will require access to the Azure…

0

Acquiring OAuth2 access tokens for automating Exchange Management Shell cmdlets

Overview At present, there are no configurable permissions available for new Application Registrations in Azure Active Directory allowing to acquire OAuth2 tokens for automating Exchange Management Shell cmdlets. This work is currently being investigated by engineering and we hope to be in a position to provide such functionality in the future. That said, there is…

0

Transport Agent: Discard Mailbox-Full type of NDR

Hello folks, me again. It was some time I didn’t have the opportunity to blog about Transport Agents so I thought to write something about this. This week I have been working with a customer desiring to block specific types of Non-Delivery Reports. In the example, the idea is to block NDR’s such as the…

0

Transport Agent: Rewriting Sender or Recipient Domain

Lately I’ve been working on few Transport Agents which I feel maybe handy to share. While the logic adopted is very simple, the sample showcase how to inspect and modify entries in the P1 and P2 headers.   The requirement was for 2 separate agents one rewriting the sender domain and one rewriting the recipient…

2

PowerShell: Apply Retention Policies or Auto-Archive Settings to Inbox sub-folders

This week I’ve been spending some time in reviewing how Exchange Retention Policies and Outlook Auto-Archive setting are stored in a user mailbox.   If you’re wondering whether to start using Outlook Auto-Archive or the Exchange Retention policy I would like to call out some differences.   How important is enterprise data? If the answer to this…

2

Transport Agent: Handle email address tagging

With email being the preferred way to receive notifications, it may happen to all of us to receive emails that are not extremely relevant or which do not require immediate attention.   This, as example, can be consists of Forums or other services notifications. Some e-mail providers offer the possibility to use a technique called…

0

PowerShell: Batching operations to avoid throttling.

More and more often we are receiving escalations as well as general questions on how to batch a given command, in order to avoid throttling or long running sessions that terminates with disconnections. While this may be rather straight-forward to implement, at some times it is inconvenient to build a whole script just to execute…

0

Programmatically manage OWA 2013 folder conversation view settings

As a few people have requested this, I’ve written a .Net sample for managing folder Conversation View settings for OWA 2013. In Exchange 2013, the Conversation View settings are stored the FolderViewState element of the OWA.ViewStateConfiguration configuration item stored in the associated content of the Root folder. This sample can be used to list or…

1

EWS: How to send signed email using the EWS Managed API

A question that keeps popping up is how to send signed or encrypted email using EWS.  A colleague (thank-you Vladimir!) has recently put together some sample code showing how to do exactly that using the EWS Managed API.  Based on his sample code, I’ve been able to partially complete my Windows Forms application that shows how…


PowerShell: Remove duplicate items from a mailbox

I’ve extended the script I posted a few months ago so that now it can search for duplicate contacts and email items (not just appointments).  I’ve posted the script to the Office Developer Centre, and rather than having to maintain two pages, I’ll just leave a link here: https://code.msdn.microsoft.com/exchange/PowerShellEWS-Remove-54228d71 Any new code samples will be…