EWS: Missing SOAP headers when using the EWS Managed API No ratings yet.

We’ve recently had a few cases where some SOAP headers were missing from the request when performing specific operations and targeting specific Exchange versions. This resulted in incorrect data being returned. For example, if you Target Exchange2010 or higher and…

Read More

EWS: Performance issues when accessing multiple mailboxes? 5/5 (1)

We’ve had a few cases come through over the past few months regarding slow performance against Office Online from an EWS service application.  Several of them have come down to a very simple .Net setting that isn’t necessarily obvious.  In fact,…

Read More

PowerShell: Create folders in users’ mailboxes No ratings yet.

Here is a PowerShell EWS script that will create folders (one or more) in users’ mailboxes.  To run it against a single mailbox, syntax is: .\Create-Folders.ps1 user1.ex2k7@hybrid.local “Folder 1;Folder 2” By default, folders are created under the inbox.  For multiple…

Read More

PowerShell: Purge folder of items over a certain age No ratings yet.

This PowerShell script can be used to purge a folder of its contents, optionally only deleting items before a certain date. Example usage: .\Purge-MailboxFolder user1.ex2k10@hybrid.local “Test Folder” “02/Aug/2013” -Impersonate -SearchForFolder The above will search for the first folder called Test…

Read More

PowerShell: Search public folders for items of a particular message class (ItemClass) No ratings yet.

In addition to the mailbox search script, I have also written a sample script showing how to do the same search against public folders.  It works in exactly the same way, but iterates public folder tree instead of the mailbox.…

Read More

PowerShell: Search mailbox for items of a particular message class (ItemClass) No ratings yet.

The Search-Mailbox cmdlet can be used to perform various searches within a mailbox, and while it serves many needs, there are some searches that it can’t do.  I wrote a PowerShell script to demonstrate how to perform a search of…

Read More

EWS: Streaming Notifications and Exchange 2013 (and Office 365 Wave 15) No ratings yet.

Exchange 2013 introduced a new affinity model which means that streaming subscriptions to multiple mailboxes need to be handled in a different way to earlier versions.  If you are connecting to a single mailbox, you shouldn’t have a problem, but…

Read More