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

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…


HOW TO: Add SMTP ProxyAddresses to a mailbox using Exchange PowerShell and Managed code.

The key here is that you will first have to read all the proxy addresses using the Get-Mailbox Cmdlet and then call the Set-mailbox Cmdlet to update the ProxyAddresses. If this is not done you end up replacing all the existing addresses with the one you just added. To get the sample to work you…

3

How to force System.Net.Mail to use AUTH LOGIN instead of AUTH gssapi

When we send a mail out using System.Net.mail, It sends out a EHLO command, It then parses out the response to create a list of the Authentication mechanism that are supported by the SMTP Server. It then loops through the internal Authentication mechanisms which are listed below: -SmtpNegotiateAuthenticationModule -SmtpNTLMAuthenticationModule -SmtpDigestAuthenticationModule -SmtpLoginAuthenticationModule Then it compared each…

2