Hobby Chef

Browse by Tags - Jive into Messaging world - Site Home - MSDN Blogs

Browse by Tags

Tagged Content List
  • Blog Post: Draft: How to take EWS/OWA/ETL trace to troubleshoot Exchange Web Services issues – EXCHANGE 2007 & 2010

    THIS IS A DRAFT DOCUMENT AND MAY CHANGE WITHOUT PRIOR NOTICE. PURPOSE: Collect ETL trace from Exchange Server 2007 & 2010 to troubleshoot Exchange Web Services related issues. Applies to: Microsoft® Exchange Server© 2007 & 2010 Steps 1) Go to CAS Server and fire up Extra.exe (%PROGRAMFILES%\Microsoft...
  • Blog Post: HOWTO: Automatically Login to OWA 2007 using HTML + JavaScript

    First thing first, you should understand that this is NOT SUPPORTED & NOT RECOMMENDED solution by Microsoft. This is just a proof of concept that OWA 2007 can be auto login, if you know the username & password of target account. The approach is simple and took me little reverse engineering or...
  • Blog Post: HOWTO: EWS: Get OOF State for Self or any user in your organization

    First thing first, this is just for demonstration purpose and might *not* be a supported solution by Microsoft. The setting we are reading from are hidden messages and not documented anywhere. I had to reverse engineer it for demonstration purpose. Objective : To get OOF State of any user in your organization...
  • Blog Post: HOWTO: WebDAV: Send mail with Custom Form and set properties

    This is going to be a very simple sample of how you can send an email with custom properties set and also change the message class so that it render on outlook as Custom Form. Prerequisites: A custom form must be published with same class name to render the email properly. How it works… Step 1) It drop...
  • Blog Post: Searchfolder created from EWS is not displaying items falling under criteria within Outlook

    I have been working on different SearchFolders cases lately where customers were trying to create SearchFolder using EWS. Working on those issues has uncovered a limitation of Outlook (I tested it on 2007, but may exist with earlier versions as well) I created the search folder using the following XML...
  • Blog Post: HOW TO: Create SearchFolder to search for Custom Properties using EWS

    Here is a quick sample if you are looking at creating a search folder using EWS which will look for Custom Property. Here we are looking for a custom property named “EmployeeID” and make sure that the property exist and does not have a blank value. public static BaseFolderType CreateCustomPropSearchFolder...
  • Blog Post: HOWTO: Give Service Account Access to all mailboxes on an Exchange 2007 Server

    This is my first attempt to write a Powershell sample to my readers. In this sample we will give Send-As, Receive-As, ms-Exch-Store-Admin rights to an active directory user. We will be piping two commands here… Get-MailboxServer and the result will go to Add-AdPermission. You may give same permissions...
  • Blog Post: HOWTO: CDOEXM: Add Associated External Account permission to existing mailbox

    If you ever tried to modify the msExchMailboxSecurityDescriptor attribute directory then you must be aware that this attribute exists on the user object in the Active Directory and stores a partial copy of the user's mailbox security descriptor. This attribute is not back linked to the user's mailbox...
  • Blog Post: HOWTO: WebDav: Exchange 2003: Poll for unread emails & notify admin if a predefined level is reached

    I think you may find it useful as well. I wrote this script to monitor a particular mailbox for unread emails count in a particular folder and notify people about it. It could be useful to monitor a service mailbox and make sure it does not have any email unprocessed after a certain period of time. You...
  • Blog Post: HOWTO: EWS: Send UTF-16 request to Exchange Web Service from VBScript

    I had explained earlier how you can consume Exchange Web Services like WebDAV from VBScript in the below sample http://blogs.msdn.com/vikas/archive/2007/11/22/howto-ews-call-exchange-web-service-from-vbscript.aspx Today I had a requirement to send Unicode request to the server but VBScript does not support...
  • Blog Post: HOWTO: Create Search Folder using Exchange Impersonation for multiple users via Exchange Web Services

    What are we doing here? What is Search Folder? Why do I care? Search folders are a quick way to bookmark your frequently searched items. It allows you to save a search query with predefined parameters for quick access. For instance I am always looking for emails with attachments and from a particular...
  • Blog Post: HOWTO: Get Exchange 2000/2003 mailbox statistics remotely using WMI

    Of course you cannot use WMI to manage Exchange 2007, obviously Powershell is more power full and recommended to be used on Exchange 2007 Server. We will talk about Powershell and how to do same for 2007 later. For now you can use following script to get the statistics data from Exchange WMI Provider...
  • Blog Post: HOWTO: Programmatically enumerate permissions on Exchange 2003 Mailbox Store

    This was a tough one and was lots of learning for me as well. Me and my colleague was working on a customer issue where his intentions were to list all the permissions on Exchange 2003 Mailbox Store. Of course one can go to Exchange System Manager (ESM), but considering an environment with 20+ Exchange...
  • Blog Post: Are you using Exchange Web Services ?

    If yes then I would like to hear from you. Your experiences, challenges, things you feel are barriers and things that could make it even better. Do you need samples? What sort of operations you want to perform using Exchange Web Services? You may ask me why I want to know all this.. well... I am developer...
  • Blog Post: HOWTO: WebDAV: EWS: Programmatically recover soft deleted items from dumpster

    As you may already know, EWS has support for Soft-Deleting items but the irony is it cannot access the soft-deleted items. This is a design challenge and product group is aware of this limitation. Hopefully we should see this support natively in EWS sooner or later. If you really need a solution or as...
  • Blog Post: HOWTO: EWS: Update IsRead Flag for items using Exchange Web Services

    First thing first, you cannot use Exchange Web Services (as of now) to update the IsRead flag for items other than MessageType. MessageType has IsRead property in place to update the MAPI property PR_MESSAGE_FLAGS. Product group is aware of this limitation and very soon we should see an fix for this...
  • Blog Post: HOWTO: EWS: Consume Exchange Web Service from VBScript

    Yes you can consume Exchange Web Service using VBScript or any language / platform which support HTML. In this sample, I have used XMLHTTP to send/receive soap request/response. Then I have used MSXML Document to parse the XML returned by the server to get the response code. I have converted my...
  • Blog Post: HOWTO: EWS: Disable Out-of-office / OOF message

    WebDav is definitely de-emphasized and not recommended to develop applications for Exchange 2007. But WebDav was still the easiest method to disable OOF message. I was not surprised to see it NOT working against Exchange 2007 to disable the OOF message. I have a better solution for you… use my favorite...
  • Blog Post: HOWTO: EWS: Find all folders inside a parent folder, helpful in generating a folder tree

    Looks cool isn’t it? I have created this folder tree for my mailbox using Exchange Web Services. You can do the very same. Here is the code which I am using to get all the folders inside a folder and recursively go deep-n-deep until your reach the core. Here is the sample code… ///...
  • Blog Post: HOWTO: OOM: Getting Primary SMTP Address from X500

    Getting primary address from X500 address was always a pain when using OOM. Thank to these guys who realized this pain and built in this functionality in Outlook 2007 Object Model. I have figured out a way to get this value from within OOM for Outlook 2003 & below as well. How it works =========...
  • Blog Post: HOWTO: EWS: Add attachments to existing items on server

    Forgot to add that attachment? Using exchange web service you can add it back to the item on the server. The code is simple and very easy to understand. It takes two parameters itemID – where attachment will be added, & strFileName – complete path to the local file. private bool AddAttachment...
  • Blog Post: HOWTO: EWS: Get LastModifiedTime for Items

    So wondering where is LastModifiedTime? Exchange Web Services does not seem to give you the hint when the item was last modified. This property is not available in ItemType and expected to be available only after Exchange 2007 SP1. You can get the LastModifiedTime with the help of ExtendedProperty...
  • Blog Post: HOWTO: EWS: Use GetAttachment to download attachments off Mail/Appointment

    I have fallen for exchange web services. There are endless possibilities with exchange web services, and product group is still working to make it even better. Today I have created a neat sample to download attachments off Exchange Server Sample: DownloadAttachments Input Params: itemID , folder...
  • Blog Post: HOWTO: EWS : Get SMTP address from X500 address

    Getting SMTP address from X500 address was a tricky task in exchange 2003 days. But with the release of exchange 2007 not only you can get SMTP address but other details as well from Active Directory using EWS and that's too in one single call. Today I will introduce you with a magic function of...
  • Blog Post: HOWTO: GetFolder, FindItem, Restriction, GetItem

    This is an attempt to extend my previous code sample Getting into a folder by path using EWS With this code sample I have demonstrated HOWTO find items under a folder. I have used Restriction to list down all the "IPM.Note" items falling under a specified date/time span. class EWS_SAMPLE ...
Page 1 of 2 (27 items) 12