EMEA Developer Support for Messaging Team Blog

Messaging Developer code samples and documentation

Browse by Tags

Tagged Content List
  • Blog Post: How to clear SIDHistory and keep mailbox permissions

    The SIDHistory attribute of a user object is used to store old SIDs for that user (usually SIDs from other domains when the user is migrated). In some cases, over time, this attribute can hold lots of values (every time a user is migrated, the previous SID is added to the list), and we sometimes get...
  • Blog Post: EWS: Importing bank holidays from an Outlook.hol based CSV file

    This is a follow up post for Outlook Code: Importing bank holidays from an Outlook.hol based CSV file. I’ve written the script a while back and I thought I’d update for ease of use and to add some extra functionality. The script uses the EWS Managed API to connect to the mailboxes so please make sure...
  • Blog Post: EWS: Missing SOAP headers when using the EWS Managed API

    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 wish to reply to or forward an EmailMessage...
  • Blog Post: EWS: Performance issues when accessing multiple mailboxes?

    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, I first hit the issue myself when creating a streaming notification...
  • Blog Post: PowerShell: Create folders in users' mailboxes

    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 folders (as above), separate...
  • Blog Post: PowerShell: Purge folder of items over a certain age

    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...
  • Blog Post: PowerShell: Search public folders for items of a particular message class (ItemClass)

    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. The EWS Managed API needs to be installed on the machine running the script...
  • Blog Post: PowerShell: Search mailbox for items of a particular message class (ItemClass)

    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 a mailbox (or mailboxes) using EWS, in this case looking for items of a particular...
  • Blog Post: EWS: Streaming Notification Sample

    To complete my unintentional series on EWS notifications, I have written a sample application showing how to deal with streaming subscriptions. The application includes full logging of both events and EWS calls, so is very useful for troubleshooting. The screenshot below shows the application in action...
Page 1 of 1 (9 items)