Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
April 2013
(1)
December 2012
(2)
August 2012
(3)
July 2012
(2)
May 2012
(2)
January 2012
(1)
December 2011
(2)
September 2011
(1)
August 2011
(1)
July 2011
(5)
June 2011
(5)
May 2011
(1)
April 2011
(3)
February 2011
(1)
November 2010
(2)
May 2010
(1)
March 2010
(7)
February 2010
(1)
January 2010
(2)
December 2009
(3)
September 2009
(3)
May 2009
(1)
April 2009
(1)
February 2009
(1)
January 2009
(1)
December 2008
(1)
November 2008
(4)
October 2008
(6)
August 2008
(6)
Tags
C#
CDOSYS
Deployment
DevMsgTeam
EWS Managed API
Exchange 2003
Exchange 2007
Exchange 2010
Exchange Web Services
HOWTO
Messaging Records Management
Outlook 2007
Outlook 2010
Powershell
PowerShell 2.0
SMTP
System.Net.Mail
Transport Agent
VB Script
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
VSTO
VSTO 3.0
WebDAV
Common Tasks
Blog Home
Email Blog Author
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
Stamping Archive Policy Tag using EWS Managed API from PowerShell(Exchange 2010)
Akashb
In a previous post I had explained how to stamp a Retention Policy Tag using EWS Managed API , In this post I will explain the changes you will need to make to stamp an Archive Policy Tag. What’s the difference between these two? Retention Policies consist of delete tags, i.e. retention tags with either...
on
7 Dec 2012
Blog Post:
Using–Filter, Select-Object, ForEach-Object in C# – Exchange PowerShell Automation
Akashb
Have you ever tried migrating Exchange PowerShell script to be used from C# code? I needed to convert the following script to C# Get-Mailbox - filter {ResourceType -ne "Room" }| Select-object Alias,DistinguishedName,Identity | foreach -object {Get-MailboxFolderStatistics $_.Alias} ...
on
1 Aug 2012
Blog Post:
Run-time error ‘-2147352567 (80020009) when trying to do SetColumns on a Items collection in Outlook
Akashb
Problem: SetColumns is failing on non-english versions of windows with the error message below. In fact it was even failing on a English version of windows with English Office 2010 installed. Why would this be happening? When I looked at the system where this code was failing, it looked as if the entire...
on
11 May 2012
Blog Post:
Stamping Retention Policy Tag on Items using EWS Managed API 1.1 from PowerShell(Exchange 2010)–Part 2
Akashb
Yes, this is similar to the script in my previous post but is also different in the following ways: This script searches the entire mailbox and looks for items in folders that contain mail items or in other words where the folders class is IPF.Note This scripts also shows how to use the Not, Exists the...
on
11 Jan 2012
Blog Post:
Stamping Retention Policy Tag on Items using EWS Managed API 1.1 from PowerShell(Exchange 2010)
Akashb
This post deals with a scenario where we need to stamp Retention Policy on specific items. In this case we wanted to stamp a policy on items with a specific message class. In my previous post I had explained about Messaging records management and how to stamp the policy on a folder. Please do read my...
on
30 Nov 2011
Blog Post:
Searching contacts using EWS Managed API 1.1 from PowerShell (Impersonation, SearchFilterCollection, ContainsSubstring)
Akashb
Here is another example of using EWS Managed API with PowerShell 2.0. In this case the requirement was to be able to find out all contacts that have Hotmail email address in any of the Email Address fields. This provided me to opportunity to demonstrate the use SearchFilterCollection and ContainsSubstring...
on
30 Nov 2011
Blog Post:
HOW TO: Call .PS1 script from Managed code using Remote Powershell(Exchange 2010)
Akashb
As promised below is the code to call a .PS1 script and pass parameters to it. Most of the code is very similar to my previous post that showed how to call Exchange & PowerShell cmdlet. using System; using System.Collections.Generic; using System.Text; using System.Management.Automation; using System...
on
26 Mar 2010
Blog Post:
HOW TO: Migrating Exchange 2007 PowerShell Managed code to work with Exchange 2010
Akashb
Will my Exchange 2007 PowerShell Managed code work with Exchange 2010 as is? Unfortunately the answer is NO, fortunately there are not many changes that you will have to make. The management experience given by Exchange 2010 through PowerShell has been moved all the way from Local to Remote. Dave Vespa...
on
25 Mar 2010
Blog Post:
HOW TO: Read User Configuration for OWA in Exchange 2010 using EWS Managed API 1.0
Akashb
The User Configuration operations enable clients to create, delete, retrieve, and update user configuration information. These operations are new in Exchange 2010. Configuration data consists of groups of related application settings. Each group of settings is stored together in separate stream properties...
on
11 Mar 2010
Blog Post:
HOW TO: Configure Exchange 2007 and Exchange 2010 for using Impersonation
Akashb
Exchange 2010: Configuring Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204095.aspx Using Exchange Impersonation XML Request/Response http://msdn.microsoft.com/en-us/library/bb204088.aspx Using Impersonation in EWS Managed API http://msdn.microsoft.com/en-us...
on
10 Mar 2010
Blog Post:
HOW TO: Build a complex search using SearchFilter and SearchFilterCollection in EWS Managed API 1.0
Akashb
Here is another sample for building a complex search criteria for Finding items. We use the SearchFilter and SearchFilterCollection to build the “Restriction”. In short we are finding items which have a User Property called X-State AND the value of X-State is not (3 OR 4 OR 5) AND the ItemClass is IPM...
on
5 Mar 2010
Blog Post:
HOW TO: List Top Level Folders in a Mailbox using EWS Managed API 1.0
Akashb
Now that developers have started using Exchange Web Services Managed API, I thought it would be nice for me to post some samples to do simple things using the API. This sample shows: 1)How to list the Top Level folders in a mailbox. 2)Using Paging with the FolderView class. 3)Enabling logging of the...
on
5 Mar 2010
Blog Post:
Increasing the number of mails that can be processed(Asynchronously) by a Routing Agent simultaneously
Akashb
I recently ran in an issue where one of my customer was developing a context sensitive email analysis software for MS Exchange 2007. The results of the analysis was used to decide how that email would be dealt with. Due to the complexity of the analysis, the estimated processing time per email was about...
on
10 Sep 2009
Blog Post:
Changing the position of the “ReplyAll” button in Outlook 2007 Ribbon
Akashb
Do you want to make “ReplyAll” the last button in the Ribbon while reading mail(Inspector) in Outlook 2007? Yes, it can be done. All you have to do is make a simple COM Add-in that implements IRibbonExtensibility or a VSTO Add-in and provide it with the appropriate Ribbon XML. You cannot hide/remove...
on
13 May 2009
Blog Post:
HOWTO: Using PowerShell in ASP.NET (.NET Framework 2.0)
Akashb
The easiest solution is to create a COM component and register that component with component services (COM+) running the component under a specific user identity. Why do I say this? Read on... In my case the Web site/Application was configured to run under the DefaultAppPool (Identity = Network Service...
on
30 Jan 2009
Blog Post:
HOW TO: Get details about a Exchange User in Outlook 2007 & Outlook 2003
Akashb
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 found...
on
19 Dec 2008
Blog Post:
HOWTO: Set Mailbox Quotas using CDOEXM
Akashb
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...
on
20 Nov 2008
Blog Post:
HOWTO: Dump out Contacts using CDOEX and ADO
Akashb
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 the file...
on
14 Nov 2008
Blog Post:
HOW TO:Set folder level permissions using CDO 1.21 and ACL.dll
Akashb
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...
on
7 Nov 2008
Blog Post:
HOW TO:Iterating through Exchange Mailboxes using CDO 1.21
Akashb
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...
on
27 Oct 2008
Blog Post:
HOW TO:Alter the "SetSecurity" and "Setup" project to support deployment of a VSTO Add-In for All Users
Akashb
Why do we need to alter the "SetSecurity" and the "Setup" project? I sincerely suggest you read the following Blog posts and article first, otherwise you will not be able to make sense out of this post. Deploying your VSTO Add-In to All Users (Part I) Deploying your VSTO Add-In to All Users (Part...
on
17 Oct 2008
Blog Post:
HOW TO: Alter the "SetSecurity" project to grant full trust to the add-in installation folder instead of the add-in assembly
Akashb
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"...
on
10 Oct 2008
Blog Post:
HOW TO: Using WebDAV from PowerShell 1.0
Akashb
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...
on
9 Oct 2008
Blog Post:
HOW TO: Add SMTP ProxyAddresses to a mailbox using Exchange PowerShell and Managed code.
Akashb
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 will...
on
29 Aug 2008
Blog Post:
How to force System.Net.Mail to use AUTH LOGIN instead of AUTH gssapi
Akashb
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...
on
21 Aug 2008
Page 1 of 2 (27 items)
1
2