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…
Year: 2011
Searching contacts using EWS Managed API 1.1 from PowerShell (Impersonation, SearchFilterCollection, ContainsSubstring)
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 search filter from a PowerShell…
Unable to set the Folder Property in Outlook View Control–Getting error 8002801d (Library Not Registered)
One of my customer ran into this issue with the Outlook View Control. All we were doing was trying to set the Folder property to the Contacts folder so that when the control loads it shows the contacts in that folder by default. In our case it gave the error 8002801d (Library Not Registered) and…
Stamping Retention Policy Tag using EWS Managed API 1.1 from PowerShell(Exchange 2010)
Exchange Web Services with PowerShell! In the last few days I have written quite a few scripts that use Exchange Web Services Managed API 1.1 with PowerShell, you will agree that it is not as easy as writing Exchange Web Services Managed API 1.1 with C# and it takes a bit of getting used to…
How to get information on Database Copies using Managed code and Remote Powershell(Exchange 2010)
It all started with a customer who wanted to know which servers in the DAG setup have the copies for a specific Exchange database. There were other properties like Activation Preferences that he was interested in too. The easiest way to get the details about the copies for a database is by using the command…
Another example of using EWS Managed API 1.1 from PowerShell (Impersonation, SearchFilter, FindItems, Paging)
In this case the customer wanted to know the Item count, size of all the item in the Inbox that were older than 5 years. As usual, the requirement was to run the script against multiple mailboxes. I could have easily written this in C# in no time but preferred to do this in PowerShell…
Exchange 2010 SP1 Rollup 4 re-released
On Wednesday, 7/27, the Exchange Sustained Engineering team re-released Exchange 2010 SP1 RU4. This release is being tracked by KB 2579150 and will contain a download file that is unique from the previous release. This updated rollup contains all of the changes that were in the original rollup with the exception of the regression because…
Creating folder using EWS Managed API 1.1 from PowerShell
A customer of mine wanted to create a folder under Inbox for thousands of mailboxes. He also wanted to use PowerShell to do it. What better way that using Exchange Web Service(Managed API) with Impersonation to do the job. The list of the users are available in a text file. The First row denotes the…
Use Windows PowerShell in Exchange Online
A few articles on working with Exchange Online (Office 365 for enterprises, Live@edu) with Windows Powershell. Install and Configure Windows PowerShellhttp://technet.microsoft.com/en-us/exchangelabshelp/cc952756 Connect Windows PowerShell to the Servicehttp://technet.microsoft.com/en-us/exchangelabshelp/cc952755 Reference to Available PowerShell Cmdlets in Exchange Onlinehttp://technet.microsoft.com/en-us/exchangelabshelp/dd575549 Administrator Role Groups in Exchange Onlinehttp://technet.microsoft.com/en-us/exchangelabshelp/ee441216 Role Based Access Control in Exchange Onlinehttp://technet.microsoft.com/en-us/exchangelabshelp/dd207274 Role Assignment Policies in Exchange Onlinehttp://technet.microsoft.com/en-us/exchangelabshelp/ee424427 Enjoy!
Error: “Object reference not set to an instance of an object” when sending out mails using System.Net.Mail via Exchange 2007
This was a fun issue to work on! Some background, the customer was using System.Net.Mail to send out mails via Exchange 2007 using port 25 and port 587, all was working fine and then some updates were installed and he was no longer able to send out mails via port 587. He started to get…