How to change the default item type of a folder (VBScript and OOM, or EWS) No ratings yet.

It is possible to change the default item type of Outlook folders, and this is commonly done when custom forms are being used.  The question came up recently asking whether it is possible to do this programmatically, and it certainly…

Read More

PowerShell: Script to move items from one folder to another in a user’s mailbox No ratings yet.

Note: A completely rewritten and enhanced version of this script can be found here. Manipulation of mailbox items is not something that is really available using Exchange cmdlets – understandably, as Exchange PowerShell is for administration of the Exchange environment…

Read More

PowerShell: Script to recover all deleted items in a mailbox 5/5 (1)

UPDATE 14/9/2018: Script has now moved to https://gallery.technet.microsoft.com/exchange/PowerShell-Recover-items-89f9f92e, and supports recovery to original item location.  I’ve removed the script from this page, as it is outdated. We had a request recently for a sample PowerShell script that shows how to recover…

Read More

PowerShell: Script to import calendar items into Exchange mailbox from CSV file No ratings yet.

A recent case brought up the question of whether it is possible to import calendar items into a mailbox from a text file using PowerShell.  While there aren’t any cmdlets built-in that support this, it is certainly possible to implement…

Read More

Using Exchange Web Services from VBScript: Sending a message with attachment example 5/5 (1)

With Exchange 2010, CDO and all the other APIs that were commonly used from VBScript (e.g. WebDAV) are no longer supported.  The only scriptable API is EWS.  While it is relatively easy to use EWS using the managed API, this…

Read More

GetContactPictureAttachment, SetContactPicture and Exchange 2007 No ratings yet.

The EWS methods GetContactPictureAttachment and SetContactPicture are not available in Exchange 2007, so how do you programmatically access a contact’s picture? Fortunately, Exchange 2007 still supports CDO.  While is it de-emphasized, this simply means that while it is recommended to…

Read More

EWS Push Notification Example Application No ratings yet.

Note: I have written another sample application which does not use WCF (and also shows how to integrate easily with the EWS Managed API).  This sample is available here: http://blogs.msdn.com/b/emeamsgdev/archive/2012/12/20/ews-push-notification-sample.aspx I had a case where a customer was having an…

Read More