HOW TO: Get details about a Exchange User in Outlook 2007 & Outlook 2003

I recently came across an issue where I needed to get the details about Exchange User from within an Outlook Add-in. Below is a screen shot of the details I am referring to.   In Outlook 2007 its very simple, just use the ExchangeUser Object and you will get the details. More details can be…

6

HOWTO: Set Mailbox Quotas using CDOEXM

Are you someone who maintains Exchange 2003 servers? Did you ever have a requirement to set the Mailbox quotas for a lot of users at one go?  Here is your solution. The sample code below uses ADSI and Cdoexm to set mailbox quotas for multiple user. The following sample is a simple VBScript code sample…

4

HOWTO: Dump out Contacts using CDOEX and ADO

The following sample is a simple VBScript code sample that that uses CDOEX and ADO to iterate through multiple mailboxes and dumps out the contact data to a text file. This code must be run on the Exchange server. To use this sample, paste the following code in a new text file, and then name…

0

HOW TO:Set folder level permissions using CDO 1.21 and ACL.dll

This is not something everyone would want to do, but just in case below is the sample code that uses ACL.dll (found in the Platform SDK) to set "Reviewer" permissions on all the folders for a specific user. The following sample is a simple VBScript code sample that iterates through all folders in multiple mailboxes…

9

Unable to Instantiate Outlook Object from Visual Studio 2008 on Vista with UAC ON?

Having problems in instantiating a new Outlook object from VS 2008(Windows Form Application) when running on Vista with UAC ON? Getting weird errors similar to the ones below? System.Runtime.InteropServices.COMException was unhandled   Message="Creating an instance of the COM component with CLSID {0006F03A-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001."   Source="MyApp"  …

4

HOW TO:Iterating through Exchange Mailboxes using CDO 1.21

I have seen many developers wanting to loop through multiple mailboxes either to get the mailbox size or get the number of emails in different folders. Here is a sample that loops through multiple mailboxes recursively. The following sample is a simple VBScript code sample that iterates through all folders in multiple mailboxes. To use…

2

HOW TO: Alter the "SetSecurity" project to grant full trust to the add-in installation folder instead of the add-in assembly

Its better late than never, I have been wanting to write this post for a long time now and looks like the time has finally come! This is about adapting the "SetSecurity" project to grant Full Trust to the add-in installation folder instead of just the add-in assembly. What is "SetSecurity"? This is a sample…

5

Issue with updating a PT_BINARY property using WebDAV

I ran into a strange issue yesterday when I was trying to update a Named property of type PT_BINARY using WebDAV. When I did the PROPPATCH it went through fine and did not fail. When I checked the Named property using MFC MAPI, it was there but the type had changed to PT_STRING8. Below is…

0

HOW TO: Using WebDAV from PowerShell 1.0

I was just trying my hands on PowerShell and wanted to try using WebDAV from it. I wrote a small sample that searches the inbox of a user for unread mails and lists out the Href and the Subject of the email. Create a .PS1 file as below: #Change the Server name and Credentials [System.String]$serverName…

0